diff --git a/src/FilterItem.svelte b/src/FilterItem.svelte index e6ae46a..de2c632 100644 --- a/src/FilterItem.svelte +++ b/src/FilterItem.svelte @@ -80,10 +80,10 @@ }); } - const url = () => { + const url = (() => { const source = mkSource(item); return source ? source.export_url : undefined; - }; + })(); $: selected = $filtering === CHECKED ? [item, ...subselected.flat()] : subselected.flat(); @@ -97,7 +97,7 @@ on:change={handleChange} value={item} bind:collapsed - url={url()} + {url} />