From f3fa19849a29e359582180f1941f601f63cbdba1 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 27 Aug 2024 19:58:13 +0000 Subject: [PATCH] fix: handle invalid id --- packages/nc-gui/store/bases.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/nc-gui/store/bases.ts b/packages/nc-gui/store/bases.ts index 73948a467a..ccf5b45155 100644 --- a/packages/nc-gui/store/bases.ts +++ b/packages/nc-gui/store/bases.ts @@ -59,6 +59,8 @@ export const useBases = defineStore('basesStore', () => { const isProjectsLoading = ref(false) async function getBaseUsers({ baseId, searchText, force = false }: { baseId: string; searchText?: string; force?: boolean }) { + if(!baseId) return { users: [], totalRows: 0 } + if (!force && basesUser.value.has(baseId)) { const users = basesUser.value.get(baseId) return {