mirror of
https://github.com/Fabio286/antares.git
synced 2025-01-13 17:43:08 +01:00
fix: issue saving queries as file
This commit is contained in:
parent
d1f68da495
commit
a54b8d719c
@ -745,7 +745,7 @@ const saveFileAs = async () => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const result: any = await Application.showSaveDialog({
|
||||
filters: [{ name: 'SQL', extensions: ['sql'] }],
|
||||
defaultPath: (!queryName.value.includes('.sql') ? `${queryName.value}.sql` :queryName.value) || 'query.sql'
|
||||
defaultPath: (queryName.value !== undefined && !queryName.value.includes('.sql') ? `${queryName.value}.sql` : queryName.value) || 'query.sql'
|
||||
});
|
||||
|
||||
if (result && !result.canceled) {
|
||||
|
Loading…
Reference in New Issue
Block a user