Make sure mountType is actually defined
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
ab9a36e872
commit
c42278b651
1 changed files with 1 additions and 1 deletions
|
@ -1069,7 +1069,7 @@
|
|||
return OC.MimeType.getIconUrl('dir-shared');
|
||||
} else if (fileInfo.mountType === 'external-root') {
|
||||
return OC.MimeType.getIconUrl('dir-external');
|
||||
} else if (fileInfo.mountType !== '') {
|
||||
} else if (fileInfo.mountType !== undefined && fileInfo.mountType !== '') {
|
||||
return OC.MimeType.getIconUrl('dir-' + fileInfo.mountType);
|
||||
}
|
||||
return OC.MimeType.getIconUrl('dir');
|
||||
|
|
Loading…
Reference in a new issue