Skip to content

Commit

Permalink
fix: count words invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
1943time committed Oct 28, 2023
1 parent 7042b04 commit 6e16fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/src/editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ export const MEditor = observer(({note}: {
first.current = true
if (!data) {
data = await treeStore.getSchema(note)
count(data?.state || [])
setTimeout(action(() => {
note.refresh = !note.refresh
}), 200)
}
count(data?.state || [])
EditorUtils.reset(editor, data?.state.length ? data.state : undefined, data?.history || true)
setTimeout(() => {
store.setState(state => state.pauseCodeHighlight = false)
Expand Down

0 comments on commit 6e16fa7

Please sign in to comment.