From 5783df3df7c2ea6d19325d188d5d1fbcf1a2b716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C5=BEe=20Fortun?= Date: Fri, 9 Jun 2023 11:45:28 +0200 Subject: [PATCH] Fix querying user endpoint with undefined --- client/web/compose/src/store/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/web/compose/src/store/user.js b/client/web/compose/src/store/user.js index 3cb087f92..9ace68682 100644 --- a/client/web/compose/src/store/user.js +++ b/client/web/compose/src/store/user.js @@ -70,7 +70,7 @@ export default function (SystemAPI) { // exclude existing & make unique const existing = new Set(getters.set.map(({ userID }) => userID)) - list = [...new Set(list.filter(userID => !existing.has(userID)))] + list = [...new Set(list.filter(userID => userID && !existing.has(userID)))] if (list.length === 0) { // Check for values again