diff --git a/apps/desktop/src/components/layout/SqlLibraryPanel.vue b/apps/desktop/src/components/layout/SqlLibraryPanel.vue index 547fa6c36..74aaf2d56 100644 --- a/apps/desktop/src/components/layout/SqlLibraryPanel.vue +++ b/apps/desktop/src/components/layout/SqlLibraryPanel.vue @@ -181,7 +181,7 @@ async function exportFolderContents(folder?: SavedSqlFolder) { async function collectSqlFilesRecursively(dir: string): Promise { const { readDir } = await import("@tauri-apps/plugin-fs"); - const { join, extname } = await import("@tauri-apps/api/path"); + const { join } = await import("@tauri-apps/api/path"); const results: string[] = []; for (const entry of await readDir(dir)) { @@ -191,7 +191,7 @@ async function collectSqlFilesRecursively(dir: string): Promise { continue; } if (!entry.isFile) continue; - if ((await extname(fullPath)).toLowerCase() !== ".sql") continue; + if (!fullPath.toLowerCase().endsWith(".sql")) continue; results.push(fullPath); } return results;