Merge branch 'phatt' into dev/front

This commit is contained in:
puri-ph4tt 2023-11-29 16:01:32 +07:00 committed by Methapon2001
commit 7d16320dea
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 {