Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: append .sql to file name only when needed (#6928)
Danny Xua081947c87af
diff --git a/frontend/src/components/Sheet/DownloadSheetButton.vue b/frontend/src/components/Sheet/DownloadSheetButton.vueindex 9edc80245b..e610d46281 100644--- a/frontend/src/components/Sheet/DownloadSheetButton.vue+++ b/frontend/src/components/Sheet/DownloadSheetButton.vue@@ -25,7 +25,10 @@ const downloadSheet = async () => {raw: true,});- const filename = `${response.title}.sql`;+ let filename = response.title;+ if (!filename.endsWith(".sql")) {+ filename = `${response.title}.sql`;+ }const content = new TextDecoder().decode(response.content);const blob = new Blob([content], { type: "text/plain" });