Skip to content

Commit e9bdd35

Browse files
loivseniOvergaard
andcommitted
Update src/packages/media/media/components/input-upload-field/input-upload-field.element.ts
Co-authored-by: Jacob Overgaard <[email protected]>
1 parent 30be1e2 commit e9bdd35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export class UmbInputUploadFieldElement extends UmbLitElement {
9595

9696
// Check for an exact match
9797
const exactMatch = this.#previewers.find((preview) => {
98-
return preview.forMimeTypes.find((type) => type === mimeType);
98+
return preview.forMimeTypes.includes(mimeType);
9999
});
100100
if (exactMatch) return exactMatch.alias;
101101

0 commit comments

Comments
 (0)