Update packages/node_modules/@node-red/editor-client/src/js/nodes.js

Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
pull/4809/head
Gauthier Dandele 2024-07-01 17:43:39 +02:00 committed by GitHub
parent 7950ee1241
commit bda9f249bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -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;