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:
committed by
Jacob Overgaard
parent
75e1dfdd76
commit
186f556a51
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user