From c42278b651df84c79ab23d0cfb07afb311c7c968 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 28 Apr 2017 10:03:31 +0200 Subject: [PATCH] Make sure mountType is actually defined Signed-off-by: Roeland Jago Douma --- apps/files/js/filelist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 047131f3d7..db85caf65f 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');