diff --git a/Services/client/src/stores/file-info-data.ts b/Services/client/src/stores/file-info-data.ts index 4ccac65..0395b98 100644 --- a/Services/client/src/stores/file-info-data.ts +++ b/Services/client/src/stores/file-info-data.ts @@ -130,7 +130,9 @@ export const useFileInfoStore = defineStore('info', () => { if (mimeType === undefined) { return 'unknown type' } - return mimeFileMapping[mimeType].type + if (mimeFileMapping.hasOwnProperty(mimeType)) { + return mimeFileMapping[mimeType].type + } } function getFormatDate(dateTime: string | undefined): string {