mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: avoid duplicate fetches
This commit is contained in:
@@ -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