Change groups.length to groups.size

Fix wrong length attribute of Set
pull/4959/head
鸿则 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
1 changed files with 1 additions and 1 deletions

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 () {