mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
🐛 Fix TypeError in nodes panel text selection (#2258)
This commit is contained in:
parent
382bcd279e
commit
3a0b96bf32
|
@ -214,11 +214,11 @@ export default mixins(externalHooks).extend({
|
||||||
this.activeIndex = Math.max(this.activeIndex, 0);
|
this.activeIndex = Math.max(this.activeIndex, 0);
|
||||||
} else if (e.key === 'Enter' && activeNodeType) {
|
} else if (e.key === 'Enter' && activeNodeType) {
|
||||||
this.selected(activeNodeType);
|
this.selected(activeNodeType);
|
||||||
} else if (e.key === 'ArrowRight' && activeNodeType.type === 'subcategory') {
|
} else if (e.key === 'ArrowRight' && activeNodeType && activeNodeType.type === 'subcategory') {
|
||||||
this.selected(activeNodeType);
|
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);
|
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);
|
this.selected(activeNodeType);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue