summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-04-28 10:03:31 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-04-28 10:03:31 +0200
commitc42278b651df84c79ab23d0cfb07afb311c7c968 (patch)
tree8ecc2ac66f98da7813be692845414dae557c12a5 /apps
parentab9a36e872173b34be2e678de0c452885e3b48d8 (diff)
downloadnextcloud-server-c42278b651df84c79ab23d0cfb07afb311c7c968.tar.gz
nextcloud-server-c42278b651df84c79ab23d0cfb07afb311c7c968.zip
Make sure mountType is actually defined
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 047131f3d78..db85caf65fa 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -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');