From bda9f249bc2243de7eed14aef8b4f22b82a4ff7f Mon Sep 17 00:00:00 2001
From: Gauthier Dandele <92022724+GogoVega@users.noreply.github.com>
Date: Mon, 1 Jul 2024 17:43:39 +0200
Subject: [PATCH] Update
 packages/node_modules/@node-red/editor-client/src/js/nodes.js

Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
---
 packages/node_modules/@node-red/editor-client/src/js/nodes.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/packages/node_modules/@node-red/editor-client/src/js/nodes.js b/packages/node_modules/@node-red/editor-client/src/js/nodes.js
index 2874a024e..b940bfc32 100644
--- a/packages/node_modules/@node-red/editor-client/src/js/nodes.js
+++ b/packages/node_modules/@node-red/editor-client/src/js/nodes.js
@@ -1043,7 +1043,8 @@ RED.nodes = (function() {
             // Update the Subflow name to highlight that this is a copy
             const subflowNames = Object.keys(subflows).map(function (sfid) {
                 return subflows[sfid].name || "";
-            }).sort();
+            })
+            subflowNames.sort()
 
             let copyNumber = 1;
             let subflowName = sf.name;