From 3a0b96bf32bc2c60cce71d58acf63c5b764344fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Tue, 28 Sep 2021 21:23:57 +0200 Subject: [PATCH] :bug: Fix TypeError in nodes panel text selection (#2258) --- packages/editor-ui/src/components/NodeCreator/MainPanel.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/editor-ui/src/components/NodeCreator/MainPanel.vue b/packages/editor-ui/src/components/NodeCreator/MainPanel.vue index 98c00f8ff0..33bb7aede5 100644 --- a/packages/editor-ui/src/components/NodeCreator/MainPanel.vue +++ b/packages/editor-ui/src/components/NodeCreator/MainPanel.vue @@ -214,11 +214,11 @@ export default mixins(externalHooks).extend({ this.activeIndex = Math.max(this.activeIndex, 0); } else if (e.key === 'Enter' && activeNodeType) { this.selected(activeNodeType); - } else if (e.key === 'ArrowRight' && activeNodeType.type === 'subcategory') { + } else if (e.key === 'ArrowRight' && activeNodeType && activeNodeType.type === 'subcategory') { this.selected(activeNodeType); - } else if (e.key === 'ArrowRight' && activeNodeType.type === 'category' && !activeNodeType.properties.expanded) { + } else if (e.key === 'ArrowRight' && activeNodeType && activeNodeType.type === 'category' && !activeNodeType.properties.expanded) { this.selected(activeNodeType); - } else if (e.key === 'ArrowLeft' && activeNodeType.type === 'category' && activeNodeType.properties.expanded) { + } else if (e.key === 'ArrowLeft' && activeNodeType && activeNodeType.type === 'category' && activeNodeType.properties.expanded) { this.selected(activeNodeType); } },