Merge branch 'phatt' into dev/front
This commit is contained in:
commit
7d16320dea
1 changed files with 3 additions and 1 deletions
|
|
@ -130,7 +130,9 @@ export const useFileInfoStore = defineStore('info', () => {
|
||||||
if (mimeType === undefined) {
|
if (mimeType === undefined) {
|
||||||
return 'unknown type'
|
return 'unknown type'
|
||||||
}
|
}
|
||||||
return mimeFileMapping[mimeType].type
|
if (mimeFileMapping.hasOwnProperty(mimeType)) {
|
||||||
|
return mimeFileMapping[mimeType].type
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getFormatDate(dateTime: string | undefined): string {
|
function getFormatDate(dateTime: string | undefined): string {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue