mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
⚡ Fix issue that workflows could not be pasted if they had issue
This commit is contained in:
parent
04cf86369d
commit
6d41f43216
|
@ -1715,6 +1715,10 @@ export default mixins(
|
||||||
for (type of Object.keys(currentConnections[sourceNode])) {
|
for (type of Object.keys(currentConnections[sourceNode])) {
|
||||||
connection[type] = [];
|
connection[type] = [];
|
||||||
for (sourceIndex = 0; sourceIndex < currentConnections[sourceNode][type].length; sourceIndex++) {
|
for (sourceIndex = 0; sourceIndex < currentConnections[sourceNode][type].length; sourceIndex++) {
|
||||||
|
if (!currentConnections[sourceNode][type][sourceIndex]) {
|
||||||
|
// There is so something wrong with the data so ignore
|
||||||
|
continue;
|
||||||
|
}
|
||||||
const nodeSourceConnections = [];
|
const nodeSourceConnections = [];
|
||||||
for (connectionIndex = 0; connectionIndex < currentConnections[sourceNode][type][sourceIndex].length; connectionIndex++) {
|
for (connectionIndex = 0; connectionIndex < currentConnections[sourceNode][type][sourceIndex].length; connectionIndex++) {
|
||||||
const nodeConnection: NodeInputConnections = [];
|
const nodeConnection: NodeInputConnections = [];
|
||||||
|
|
Loading…
Reference in a new issue