1
1
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:
Fabio Di Stasio 2024-11-21 13:28:33 +01:00
parent d1f68da495
commit a54b8d719c

View File

@ -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) {