Skip to content

Commit

Permalink
refactor(react): rephrase error message
Browse files Browse the repository at this point in the history
  • Loading branch information
exuanbo committed Jul 17, 2023
1 parent c494571 commit d88002e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .yarn/versions/4079ce94.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
releases:
"@codemirror-toolkit/react": patch
2 changes: 1 addition & 1 deletion packages/react/src/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function createCodeMirror<ContainerElement extends Element>(
useCallback((...specs) => {
const view = getView()
if (!view) {
throw new TypeError('Cannot dispatch transaction when EditorView is undefined')
throw new TypeError('Cannot dispatch transaction without a view')
}
view.dispatch(...specs)
}, [])
Expand Down

0 comments on commit d88002e

Please sign in to comment.