Skip to content

Commit 751b3cd

Browse files
committed
Format
1 parent d58bc8f commit 751b3cd

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/lib/components/csvExportBox.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@
131131
132132
switch (status) {
133133
case 'completed':
134-
downloadExportedFile(downloadUrl);
134+
if (downloadUrl) {
135+
downloadExportedFile(downloadUrl);
136+
}
135137
break;
136138
case 'failed':
137139
await showCompletionNotification(

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
table: page.params.table
147147
}
148148
);
149-
return queryParam ? `${url}?query=${queryParam}` : url;
149+
return queryParam ? `${url}?query=${encodeURIComponent(queryParam)}` : url;
150150
}
151151
152152
onDestroy(() => ($showCreateColumnSheet.show = false));
@@ -224,7 +224,8 @@
224224
size="s"
225225
secondary
226226
class="small-button-dimensions"
227-
disabled={!(hasColumns && hasValidColumns && data.rows.total) || disableButton}
227+
disabled={!(hasColumns && hasValidColumns && data.rows.total) ||
228+
disableButton}
228229
on:click={() => {
229230
trackEvent(Click.DatabaseExportCsv);
230231
goto(getTableExportUrl());
@@ -430,6 +431,7 @@
430431
431432
:global(.rotating) {
432433
animation: rotate 1s linear infinite;
434+
animation-direction: reverse;
433435
}
434436
435437
@keyframes rotate {

0 commit comments

Comments
 (0)