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
This commit is contained in:
JovannMC 2024-11-13 18:11:29 +03:00 committed by not-nullptr
parent 71e26cc3c3
commit d0c608dea4
1 changed files with 1 additions and 1 deletions

View File

@ -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))]}
/>
</div>