fix: getType file-info-data

This commit is contained in:
puri-ph4tt 2023-11-29 16:01:08 +07:00 committed by Methapon2001
parent 171ddc4295
commit 7a17dec9dd
No known key found for this signature in database
GPG key ID: 849924FEF46BD132

View file

@ -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 {