fix: improve node view error message

This commit is contained in:
Philipp Kühn 2021-04-08 09:05:43 +02:00
parent cd65bf8437
commit 536663f816

View File

@ -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