Skip to content

Commit

Permalink
fix: improve node view error message
Browse files Browse the repository at this point in the history
  • Loading branch information
philippkuehn committed Apr 8, 2021
1 parent cd65bf8 commit 536663f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/ReactNodeViewRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class ReactNodeView extends NodeView<React.FunctionComponent, Editor> {

get dom() {
if (!this.renderer.element.firstElementChild?.hasAttribute('data-node-view-wrapper')) {
throw Error('Please use the ReactViewWrapper component for your node view.')
throw Error('Please use the NodeViewWrapper component for your node view.')
}

return this.renderer.element
Expand Down

0 comments on commit 536663f

Please sign in to comment.