Update src/packages/media/media/components/input-upload-field/input-upload-field.element.ts

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
This commit is contained in:
Lone Iversen
2024-09-10 22:50:11 +02:00
committed by Jacob Overgaard
parent 75e1dfdd76
commit 186f556a51

View File

@@ -95,7 +95,7 @@ export class UmbInputUploadFieldElement extends UmbLitElement {
// Check for an exact match
const exactMatch = this.#previewers.find((preview) => {
return preview.forMimeTypes.find((type) => type === mimeType);
return preview.forMimeTypes.includes(mimeType);
});
if (exactMatch) return exactMatch.alias;