fix: type error
This commit is contained in:
parent
75cddb35d9
commit
6e0b3e378a
1 changed files with 2 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue