mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
fix(editor): Fix console error (#3751)
This commit is contained in:
@@ -115,7 +115,7 @@ export default mixins(
|
|||||||
},
|
},
|
||||||
showDraggableHint(): boolean {
|
showDraggableHint(): boolean {
|
||||||
const toIgnore = [START_NODE_TYPE, CRON_NODE_TYPE, INTERVAL_NODE_TYPE];
|
const toIgnore = [START_NODE_TYPE, CRON_NODE_TYPE, INTERVAL_NODE_TYPE];
|
||||||
if (toIgnore.includes(this.currentNode.type)) {
|
if (!this.currentNode || toIgnore.includes(this.currentNode.type)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -145,7 +145,7 @@ export default mixins(
|
|||||||
activeNode (): INodeUi | null {
|
activeNode (): INodeUi | null {
|
||||||
return this.$store.getters.activeNode;
|
return this.$store.getters.activeNode;
|
||||||
},
|
},
|
||||||
currentNode (): INodeUi {
|
currentNode (): INodeUi | null {
|
||||||
return this.$store.getters.getNodeByName(this.currentNodeName);
|
return this.$store.getters.getNodeByName(this.currentNodeName);
|
||||||
},
|
},
|
||||||
connectedCurrentNodeOutputs(): number[] | undefined {
|
connectedCurrentNodeOutputs(): number[] | undefined {
|
||||||
@@ -164,7 +164,7 @@ export default mixins(
|
|||||||
return nodes.filter(({name}, i) => (this.activeNode && (name !== this.activeNode.name)) && nodes.findIndex((node) => node.name === name) === i);
|
return nodes.filter(({name}, i) => (this.activeNode && (name !== this.activeNode.name)) && nodes.findIndex((node) => node.name === name) === i);
|
||||||
},
|
},
|
||||||
currentNodeDepth (): number {
|
currentNodeDepth (): number {
|
||||||
const node = this.parentNodes.find((node) => node.name === this.currentNode.name);
|
const node = this.parentNodes.find((node) => this.currentNode && node.name === this.currentNode.name);
|
||||||
return node ? node.depth: -1;
|
return node ? node.depth: -1;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user