mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: avoid duplicate fetches
This commit is contained in:
1 parent
7713dd1867
commit
f8d335b0d1
1 file changed
+5
-1
@@ -24,7 +24,11 @@
|
||||
let error = $state<string | null>(null);
|
||||
|
||||
onMount(() => {
|
||||
projects = page.data.allProjects?.projects || [];
|
||||
const currentOrgId = page.data.organization?.$id;
|
||||
projects =
|
||||
page.data.currentOrgId === currentOrgId
|
||||
? page.data.allProjects?.projects || []
|
||||
: [];
|
||||
});
|
||||
|
||||
let projectsToArchive = $derived(
|
||||
|
||||
Reference in new issue
Block a user