Skip to content

Commit c896248

Browse files
committed
address comments.
1 parent 558e498 commit c896248

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

  • src/routes/(console)/project-[region]-[project]/functions

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

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,11 @@
3333
3434
let offset = $state(0);
3535
36-
const createFunctionsUrl = resolveRoute(
37-
'/(console)/project-[region]-[project]/functions/create-function',
38-
{
36+
const createFunctionsUrl = $derived.by(() => {
37+
return resolveRoute('/(console)/project-[region]-[project]/functions/create-function', {
3938
...page.params
40-
}
41-
);
39+
});
40+
});
4241
4342
const isLimited = $derived(isServiceLimited('functions', $organization, data.functions.total));
4443
@@ -57,7 +56,13 @@
5756
template
5857
}
5958
);
60-
await goto(withPath(templateUrl, `?templateConfig=${templateConfig}`));
59+
60+
if (!templateConfig) {
61+
await goto(templateUrl);
62+
} else {
63+
await goto(withPath(templateUrl, `?templateConfig=${templateConfig}`));
64+
}
65+
6166
break;
6267
}
6368
case 'cover':

0 commit comments

Comments
 (0)