mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix: Show input names when node has multiple inputs (#10434)
This commit is contained in:
@@ -177,6 +177,26 @@ export const useNDVStore = defineStore(STORES.NDV, {
|
||||
isNDVOpen(): boolean {
|
||||
return this.activeNodeName !== null;
|
||||
},
|
||||
ndvNodeInputNumber() {
|
||||
const returnData: { [nodeName: string]: number[] } = {};
|
||||
const workflow = useWorkflowsStore().getCurrentWorkflow();
|
||||
const activeNodeConections = (
|
||||
workflow.connectionsByDestinationNode[this.activeNode?.name || ''] ?? {}
|
||||
).main;
|
||||
|
||||
if (!activeNodeConections || activeNodeConections.length < 2) return returnData;
|
||||
|
||||
for (const [index, connection] of activeNodeConections.entries()) {
|
||||
for (const node of connection) {
|
||||
if (!returnData[node.node]) {
|
||||
returnData[node.node] = [];
|
||||
}
|
||||
returnData[node.node].push(index + 1);
|
||||
}
|
||||
}
|
||||
|
||||
return returnData;
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
setActiveNodeName(nodeName: string | null): void {
|
||||
|
||||
Reference in New Issue
Block a user