Skip to content

Commit c2933e9

Browse files
committed
added changes
1 parent 0f7363c commit c2933e9

File tree

3 files changed

+1
-16
lines changed

3 files changed

+1
-16
lines changed

src/lib/components/breadcrumbs.svelte

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,7 @@
103103
isLoadingProjects = true;
104104
// null on non-org/project path like `onboarding`.
105105
loadedProjects = (await projects) ?? loadedProjects;
106-
107-
if (loadedProjects?.projects) {
108-
for (const project of loadedProjects.projects) {
109-
project.region ??= 'default';
110-
}
111-
}
112-
106+
// Fallback logic removed; handled in loader
113107
isLoadingProjects = false;
114108
115109
const createProjectItem = {

src/routes/(console)/project-[region]-[project]/+layout.svelte

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
{
4343
label: 'Go to Auth',
4444
callback: () => {
45-
$project.region ??= 'default';
4645
goto(`${base}/project-${$project.region}-${$project.$id}/auth`);
4746
},
4847
keys: ['g', 'a'],
@@ -51,7 +50,6 @@
5150
{
5251
label: 'Go to Databases',
5352
callback: () => {
54-
$project.region ??= 'default';
5553
goto(`${base}/project-${$project.region}-${$project.$id}/databases`);
5654
},
5755
keys: ['g', 'd'],
@@ -61,7 +59,6 @@
6159
{
6260
label: 'Go to Functions',
6361
callback: () => {
64-
$project.region ??= 'default';
6562
goto(`${base}/project-${$project.region}-${$project.$id}/functions`);
6663
},
6764
keys: ['g', 'f'],
@@ -71,7 +68,6 @@
7168
{
7269
label: 'Go to Messaging',
7370
callback: () => {
74-
$project.region ??= 'default';
7571
goto(`${base}/project-${$project.region}-${$project.$id}/messaging`);
7672
},
7773
keys: ['g', 'm'],
@@ -81,7 +77,6 @@
8177
{
8278
label: 'Go to Storage',
8379
callback: () => {
84-
$project.region ??= 'default';
8580
goto(`${base}/project-${$project.region}-${$project.$id}/storage`);
8681
},
8782
keys: ['g', 's'],
@@ -91,7 +86,6 @@
9186
{
9287
label: 'Go to Settings',
9388
callback: () => {
94-
$project.region ??= 'default';
9589
goto(`${base}/project-${$project.region}-${$project.$id}/settings`);
9690
},
9791
keys: ['g', 'e'],
@@ -101,7 +95,6 @@
10195
{
10296
label: 'Go to Sites',
10397
callback: () => {
104-
$project.region ??= 'default';
10598
goto(`${base}/project-${$project.region}-${$project.$id}/sites`);
10699
},
107100
keys: ['g', 'i'],
@@ -111,7 +104,6 @@
111104
{
112105
label: 'Go to Overview',
113106
callback: () => {
114-
$project.region ??= 'default';
115107
goto(`${base}/project-${$project.region}-${$project.$id}`);
116108
},
117109
keys: ['g', 'o'],

src/routes/(console)/project-[region]-[project]/+layout.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export const load: LayoutLoad = async ({ params, depends, parent }) => {
1616
depends(Dependencies.PROJECT);
1717

1818
const project = await sdk.forConsole.projects.get(params.project);
19-
2019
project.region ??= 'default';
2120

2221
// fast path without a network call!

0 commit comments

Comments
 (0)