mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
⚡ Fix issue that workflows could not be pasted if they had issue
This commit is contained in:
@@ -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 = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user