diff --git a/src/lib/components/chat/FileNav.svelte b/src/lib/components/chat/FileNav.svelte index 2b123b81f7..9da8e8da5c 100644 --- a/src/lib/components/chat/FileNav.svelte +++ b/src/lib/components/chat/FileNav.svelte @@ -653,7 +653,7 @@ if (paths.length === 0) return; // Single file (not dir) — use the regular downloadFile path - if (paths.length === 1 && !([...selectedEntries][0]).endsWith('/')) { + if (paths.length === 1 && ![...selectedEntries][0].endsWith('/')) { await downloadFile([...selectedEntries][0]); return; } @@ -1321,7 +1321,7 @@