diff --git a/Services/client/src/stores/file-info-data.ts b/Services/client/src/stores/file-info-data.ts index 0395b98..1b7ec41 100644 --- a/Services/client/src/stores/file-info-data.ts +++ b/Services/client/src/stores/file-info-data.ts @@ -127,12 +127,10 @@ export const useFileInfoStore = defineStore('info', () => { } function getType(mimeType: string | undefined): string { - if (mimeType === undefined) { - return 'unknown type' - } - if (mimeFileMapping.hasOwnProperty(mimeType)) { + if (!!mimeType && mimeFileMapping.hasOwnProperty(mimeType)) { return mimeFileMapping[mimeType].type } + return 'unknown type' } function getFormatDate(dateTime: string | undefined): string {