mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: from Torsten's review
This commit is contained in:
1 parent
0f05b7e3ab
commit
1492c6bdbe
1 file changed
+4
-4
@@ -13,11 +13,11 @@
|
||||
import { page } from '$app/stores';
|
||||
|
||||
let projects: Models.Project[] = [];
|
||||
$: org = $page.params.organization;
|
||||
$: organizationId = $page.params.organization;
|
||||
|
||||
onMount(async () => {
|
||||
await projectList.load();
|
||||
projects = $projectList?.projects?.filter((n) => n.teamId === org);
|
||||
projects = $projectList?.projects?.filter((n) => n.teamId === organizationId);
|
||||
});
|
||||
|
||||
let showCreate = false;
|
||||
@@ -53,7 +53,7 @@
|
||||
return { name, icon };
|
||||
};
|
||||
|
||||
$: projects = $projectList?.projects?.filter((a) => a.teamId === org);
|
||||
$: projects = $projectList?.projects?.filter((a) => a.teamId === organizationId);
|
||||
</script>
|
||||
|
||||
<Container>
|
||||
@@ -140,4 +140,4 @@
|
||||
|
||||
<CreateOrganization bind:show={addOrganization} />
|
||||
|
||||
<CreateProject bind:show={showCreate} teamId={org} on:created={projectCreated} />
|
||||
<CreateProject bind:show={showCreate} teamId={organizationId} on:created={projectCreated} />
|
||||
Reference in new issue
Block a user