mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
fix(editor): Fix merge node connectors (#5364)
* fix(editor): Fix merge node connectors * Set `stateIsDirty` from `EVENT_CONNECTION` hook
This commit is contained in:
@@ -538,7 +538,6 @@ export const useWorkflowsStore = defineStore(STORES.WORKFLOWS, {
|
|||||||
// TODO: Check if there is an error or whatever that is supposed to be returned
|
// TODO: Check if there is an error or whatever that is supposed to be returned
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const sourceData: IConnection = data.connection[0];
|
const sourceData: IConnection = data.connection[0];
|
||||||
const destinationData: IConnection = data.connection[1];
|
const destinationData: IConnection = data.connection[1];
|
||||||
|
|
||||||
|
|||||||
@@ -2088,6 +2088,7 @@ export default mixins(
|
|||||||
|
|
||||||
this.connectTwoNodes(sourceNodeName, outputIndex, this.pullConnActiveNodeName, 0);
|
this.connectTwoNodes(sourceNodeName, outputIndex, this.pullConnActiveNodeName, 0);
|
||||||
this.pullConnActiveNodeName = null;
|
this.pullConnActiveNodeName = null;
|
||||||
|
this.dropPrevented = true;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -2160,6 +2161,8 @@ export default mixins(
|
|||||||
];
|
];
|
||||||
|
|
||||||
this.dropPrevented = true;
|
this.dropPrevented = true;
|
||||||
|
this.workflowsStore.addConnection({ connection: connectionData });
|
||||||
|
this.uiStore.stateIsDirty = true;
|
||||||
if (!this.suspendRecordingDetachedConnections) {
|
if (!this.suspendRecordingDetachedConnections) {
|
||||||
this.historyStore.pushCommandToUndo(new AddConnectionCommand(connectionData));
|
this.historyStore.pushCommandToUndo(new AddConnectionCommand(connectionData));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user