mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-27 13:39:44 -08:00
fix connection aborted issue
This commit is contained in:
parent
0f07c88476
commit
5cb00963e7
|
@ -1198,9 +1198,11 @@ export default mixins(
|
|||
getConnection (sourceNodeName: string, sourceNodeOutputIndex: number, targetNodeName: string, targetNodeOuputIndex: number): IConnection | undefined {
|
||||
const nodeConnections = (this.$store.getters.outgoingConnectionsByNodeName(sourceNodeName) as INodeConnections).main;
|
||||
if (nodeConnections) {
|
||||
const connections: IConnection[] = nodeConnections[sourceNodeOutputIndex];
|
||||
const connections: IConnection[] | null = nodeConnections[sourceNodeOutputIndex];
|
||||
|
||||
return connections.find((connection: IConnection) => connection.node === targetNodeName && connection.index === targetNodeOuputIndex);
|
||||
if (connections) {
|
||||
return connections.find((connection: IConnection) => connection.node === targetNodeName && connection.index === targetNodeOuputIndex);
|
||||
}
|
||||
}
|
||||
|
||||
return undefined;
|
||||
|
|
Loading…
Reference in a new issue