From 79fa536896244892d84b006c2f8e02f9ee5bd0cb Mon Sep 17 00:00:00 2001 From: Rizky Date: Thu, 25 Jul 2024 09:43:26 +0700 Subject: [PATCH] fix --- app/srv/ws/sync/entity/user.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/srv/ws/sync/entity/user.ts b/app/srv/ws/sync/entity/user.ts index ea6f573f..9643754f 100644 --- a/app/srv/ws/sync/entity/user.ts +++ b/app/srv/ws/sync/entity/user.ts @@ -79,7 +79,10 @@ export const user = { if (cid && !this.comps[cid]) { this.comps[cid] = new Set(); } - this.comps[cid].add(found.comp_id); + + if (cid) { + this.comps[cid].add(found.comp_id); + } } }, },