Make sure mountType is actually defined

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2017-04-28 10:03:31 +02:00
parent ab9a36e872
commit c42278b651
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -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');