mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
Do not hardcode input nodes depth in child nodes
This commit is contained in:
parent
8734dc99fc
commit
118661d33b
|
@ -186,7 +186,7 @@ export default defineComponent({
|
|||
const workflow = this.workflow;
|
||||
const parentNodes = [...workflow.getParentNodes(this.rootNode, NodeConnectionType.Main)]
|
||||
.reverse()
|
||||
.map((parent): IConnectedNode => ({ name: parent, depth: 1, indicies: [] }));
|
||||
.map((parent, index): IConnectedNode => ({ name: parent, depth: index + 1, indicies: [] }));
|
||||
|
||||
return parentNodes;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue