mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-28 05:59:42 -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 {
|
getConnection (sourceNodeName: string, sourceNodeOutputIndex: number, targetNodeName: string, targetNodeOuputIndex: number): IConnection | undefined {
|
||||||
const nodeConnections = (this.$store.getters.outgoingConnectionsByNodeName(sourceNodeName) as INodeConnections).main;
|
const nodeConnections = (this.$store.getters.outgoingConnectionsByNodeName(sourceNodeName) as INodeConnections).main;
|
||||||
if (nodeConnections) {
|
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;
|
return undefined;
|
||||||
|
|
Loading…
Reference in a new issue