best way to save what you love
Svelte collaborationdownloaderinstagramjavascriptmusicredditsocial-mediasoundcloudsveltetiktoktwittertypescriptvideovimeovkwebappyoutubeyoutube-downloader
web/DialogHolder: fix typescript error, add a note
wukkob8eb70874866
diff --git a/web/src/components/dialog/DialogHolder.svelte b/web/src/components/dialog/DialogHolder.svelteindex 7a481d42..b715a485 100644--- a/web/src/components/dialog/DialogHolder.svelte+++ b/web/src/components/dialog/DialogHolder.svelte@@ -8,16 +8,18 @@$: backdropVisible = $dialogs.length > 0;</script>+<!--+ this is the cleanest way of passing props without typescript throwing a fit.+ more info here: https://github.com/microsoft/TypeScript/issues/46680+--><div id="dialog-holder">{#each $dialogs as dialog}- {@const { type, ...data } = dialog}-- {#if type === "small"}- <SmallDialog {...data} />- {:else if type === "picker"}- <PickerDialog {...data} />- {:else if type === "saving"}- <SavingDialog {...data} />+ {#if dialog.type === "small"}+ <SmallDialog {...dialog} />+ {:else if dialog.type === "picker"}+ <PickerDialog {...dialog} />+ {:else if dialog.type === "saving"}+ <SavingDialog {...dialog} />{/if}{/each}<div id="dialog-backdrop" class:visible={backdropVisible}></div>