Skip to content

Commit 3c18f6b

Browse files
committed
Rename projects data
1 parent e2c40b1 commit 3c18f6b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/lib/components/billing/alerts/selectProjectCloud.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
let error = $state<string | null>(null);
2525
2626
onMount(() => {
27-
projects = page.data.projects?.projects || [];
27+
projects = page.data.allProjects?.projects || [];
2828
});
2929
3030
let projectsToArchive = $derived(

src/routes/(console)/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@
297297
if (currentOrganizationId === org.$id) return;
298298
if (isCloud) {
299299
currentOrganizationId = org.$id;
300-
checkForProjectsLimit(org, data.projects?.projects?.length || 0);
300+
checkForProjectsLimit(org, data.allProjects?.projects?.length || 0);
301301
checkForEnterpriseTrial(org);
302302
await checkForUsageLimit(org);
303303
checkForMarkedForDeletion(org);

src/routes/(console)/+layout.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const load: LayoutLoad = async ({ depends, parent }) => {
5555
organizations,
5656
consoleVariables,
5757
version: versionData?.version ?? null,
58-
projects
58+
allProjects: projects
5959
};
6060
};
6161

0 commit comments

Comments
 (0)