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
parent 80602cadf6
commit d927fe313a
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@
isMobile={data.isMobile} isMobile={data.isMobile}
bind:files={ourFiles} bind:files={ourFiles}
onupload={runUpload} onupload={runUpload}
acceptedFormats={converters.flatMap((c) => c.supportedFormats)} acceptedFormats={[...new Set(converters.flatMap((c) => c.supportedFormats))]}
/> />
</div> </div>