diff --git a/packages/frontend/src/lib/ui/ShowNote.svelte b/packages/frontend/src/lib/ui/ShowNote.svelte index 2f39fe0..513318e 100644 --- a/packages/frontend/src/lib/ui/ShowNote.svelte +++ b/packages/frontend/src/lib/ui/ShowNote.svelte @@ -46,11 +46,11 @@ async function downloadFile(file: FileDTO) { files = note.contents } }) - let download = $derived(() => { + function downloadAll() { for (const file of files) { downloadFile(file) } - }) + } let links = $derived(typeof note.contents === 'string' ? note.contents.match(RE_URL) : []) @@ -92,7 +92,7 @@ async function downloadFile(file: FileDTO) { {/key} {/if} {/each} - + {/if}