Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(editor): use fp-ts Option to handle initial editor state
Use fp-ts Option to safely handle the initial editor state. This avoids potential errors when accessing nested properties of the content object. The code now uses `pipe` and Option methods like `fromNullable`, `map`, and `getOrElse` to handle cases where `content` or `content.editorState` might be null or undefined. This makes the code more robust and easier to reason about.
- Loading branch information