Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/routes/(console)/+layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ export const load: LayoutLoad = async ({ depends, parent }) => {
await sdk.forConsole.projects.list({
queries: [
Query.equal('teamId', currentOrgId),
Query.limit(1),
Query.select(['$id'])
Query.limit(1)
]
})
).total;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import { IconPencil } from '@appwrite.io/pink-icons-svelte';
import { Icon, Layout, Tag } from '@appwrite.io/pink-svelte';
import { createEventDispatcher } from 'svelte';
import { invalidate } from '$app/navigation';
import { Dependencies } from '$lib/constants';

export let show = false;
export let teamId: string;
Expand All @@ -34,6 +36,7 @@
});
show = false;
dispatch('created', project);
await invalidate(Dependencies.ORGANIZATION);
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
trackEvent(Submit.ProjectCreate, {
customId: !!id,
teamId
Expand Down