diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-04-28 10:03:31 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-04-28 10:03:31 +0200 |
commit | c42278b651df84c79ab23d0cfb07afb311c7c968 (patch) | |
tree | 8ecc2ac66f98da7813be692845414dae557c12a5 /apps | |
parent | ab9a36e872173b34be2e678de0c452885e3b48d8 (diff) | |
download | nextcloud-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.js | 2 |
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'); |