We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac6e840 commit 6addfe3Copy full SHA for 6addfe3
lib/ui/node/editor.tsx
@@ -42,7 +42,7 @@ export const NodeEditor: m.Component = {
42
id = id+"-value";
43
}
44
let editor = TextAreaEditor;
45
- if (node.parent.hasComponent(Document) && window.Editor) {
+ if (node.parent && node.parent.hasComponent(Document) && window.Editor) {
46
editor = CodeMirrorEditor;
47
48
return m(editor, {id, getter, setter, display, onkeydown, onfocus, oninput, placeholder});
0 commit comments