From d0c608dea411bd986984eee6292cdb4c88cc4498 Mon Sep 17 00:00:00 2001 From: JovannMC Date: Wed, 13 Nov 2024 18:11:29 +0300 Subject: [PATCH] Make formats appear once in array This doesn't cause any issues but just in case: this ensures the formats only appear once in the array instead of having multiple of the same (by using a set) probably unnecessary but, lol --- src/routes/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 73bae9d..6f63688 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -86,7 +86,7 @@ isMobile={data.isMobile} bind:files={ourFiles} onupload={runUpload} - acceptedFormats={converters.flatMap((c) => c.supportedFormats)} + acceptedFormats={[...new Set(converters.flatMap((c) => c.supportedFormats))]} />