Change groups.length to groups.size

Fix wrong length attribute of Set
This commit is contained in:
鸿则 2024-11-14 16:31:36 +08:00 committed by GitHub
parent e48607c743
commit ad615a76c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -288,7 +288,7 @@ RED.view = (function() {
}
selectedLinks.clearUnselected()
},
length: () => groups.length,
length: () => groups.size,
forEach: (func) => { groups.forEach(func) },
toArray: () => [...groups],
clear: function () {