fix: array handling

This commit is contained in:
Derrick Hammer 2023-07-22 20:48:43 -04:00
parent 767b85b380
commit dc50c7a068
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -33,9 +33,9 @@ function handleRegisterNetwork(aq: ActiveQuery) {
let network = networks.get(aq.domain);
if (network) {
aq.callerInput.type.forEach((item) => network?.add(item));
[...aq.callerInput.type].forEach((item) => network?.add(item));
} else {
networks.set(aq.domain, new Set([aq.callerInput.types]));
networks.set(aq.domain, new Set([...aq.callerInput.types]));
}
aq.respond();