Skip to content

Commit 9ab05fb

Browse files
committed
fix:added fallback in breADCRUMBS
1 parent c2933e9 commit 9ab05fb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/lib/components/breadcrumbs.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@
103103
isLoadingProjects = true;
104104
// null on non-org/project path like `onboarding`.
105105
loadedProjects = (await projects) ?? loadedProjects;
106-
// Fallback logic removed; handled in loader
106+
for (const project of loadedProjects.projects) {
107+
project.region ??= 'default';
108+
}
107109
isLoadingProjects = false;
108110
109111
const createProjectItem = {

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ export const load: LayoutLoad = async ({ depends, parent }) => {
3737
Query.equal('teamId', currentOrgId),
3838
Query.limit(1000) // Get all projects for organization
3939
]);
40+
for (const project of projects.projects) {
41+
project.region ??= 'default';
42+
}
4043
} catch (e) {
4144
// Handle error silently - projects might not be accessible
4245
projects = {};

0 commit comments

Comments
 (0)