diff --git a/src/lib/components/functional/ConversionPanel.svelte b/src/lib/components/functional/ConversionPanel.svelte index 49f7eaf..ecf80d1 100644 --- a/src/lib/components/functional/ConversionPanel.svelte +++ b/src/lib/components/functional/ConversionPanel.svelte @@ -67,17 +67,16 @@

Set all to

{#if files.requiredConverters.length === 1} - - {@const supported = files.files[0]?.converters - .flatMap((c) => c.formatStrings((f) => f.toSupported)) - ?.filter( - (format) => format !== ".svg" && format !== ".heif", - )} + {@const supported = files.files[0]?.converters.flatMap((c) => + c.formatStrings((f) => f.toSupported), + )} files.files.forEach((f) => { - f.to = r; - f.result = null; + if (f.from !== r) { + f.to = r; + f.result = null; + } })} options={supported || []} /> diff --git a/src/routes/convert/+page.svelte b/src/routes/convert/+page.svelte index eafda10..c284cea 100644 --- a/src/routes/convert/+page.svelte +++ b/src/routes/convert/+page.svelte @@ -167,7 +167,8 @@ We can't convert this file.

- Only image, video, audio, and document files are supported + Only image, video, audio, and document files are + supported

{/if} @@ -229,10 +230,7 @@ .flatMap((c) => c.formatStrings((f) => f.toSupported), ) - .filter( - (format) => - format !== ".svg" && format !== ".heif", - ) || []} + .filter((format) => format !== file.from) || []} bind:selected={file.to} onselect={(option) => handleSelect(option, file)} />