Browse Source

fix: handle invalid id

pull/9348/head
Pranav C 3 months ago
parent
commit
f3fa19849a
  1. 2
      packages/nc-gui/store/bases.ts

2
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 {

Loading…
Cancel
Save