mirror of
https://github.com/Fabio286/antares.git
synced 2025-01-27 23:59:38 +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
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
const result: any = await Application.showSaveDialog({
|
const result: any = await Application.showSaveDialog({
|
||||||
filters: [{ name: 'SQL', extensions: ['sql'] }],
|
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) {
|
if (result && !result.canceled) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user