mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
fix(editor): Refactor for-of loops to replace forEach on Set.values() for node 20 compatibility (#18529)
This commit is contained in:
committed by
GitHub
parent
e87395304d
commit
06b586af44
@@ -237,14 +237,14 @@ export const useWorkflowDiff = (
|
||||
|
||||
const acc = new Map<string, { status: NodeDiffStatus; connection: Connection }>();
|
||||
|
||||
added
|
||||
.values()
|
||||
.forEach((id) => formatConnectionDiff(id, NodeDiffStatus.Added, targetConnections.map, acc));
|
||||
removed
|
||||
.values()
|
||||
.forEach((id) =>
|
||||
formatConnectionDiff(id, NodeDiffStatus.Deleted, sourceConnections.map, acc),
|
||||
);
|
||||
for (const id of added.values()) {
|
||||
formatConnectionDiff(id, NodeDiffStatus.Added, targetConnections.map, acc);
|
||||
}
|
||||
|
||||
for (const id of removed.values()) {
|
||||
formatConnectionDiff(id, NodeDiffStatus.Deleted, sourceConnections.map, acc);
|
||||
}
|
||||
|
||||
return acc;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user