Skip to content

Commit 5f84384

Browse files
committed
fix: just randomly popped up during tests, no harm in a null check.
1 parent 08bffbb commit 5f84384

File tree

1 file changed

+2
-2
lines changed
  • src/routes/(console)/project-[region]-[project]/databases/database-[database]

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
group: 'databases',
6262
icon: IconPlus,
6363
rank: page.url.pathname.endsWith('backups') ? 10 : 0,
64-
disabled: !isCloud || !$currentPlan.backupsEnabled
64+
disabled: !isCloud || !$currentPlan?.backupsEnabled
6565
},
6666
{
6767
label: 'Create manual backup',
@@ -77,7 +77,7 @@
7777
group: 'databases',
7878
icon: IconPlus,
7979
rank: page.url.pathname.endsWith('backups') ? 10 : 0,
80-
disabled: !isCloud || !$currentPlan.backupsEnabled
80+
disabled: !isCloud || !$currentPlan?.backupsEnabled
8181
},
8282
{
8383
label: 'Go to collections',

0 commit comments

Comments
 (0)