From: Vincent Petry Date: Mon, 19 Jul 2021 21:14:06 +0000 (+0200) Subject: Use mimetype instead of type when defaulting in remote shares X-Git-Tag: v23.0.0beta1~353^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3deffc31615fa118565084ff2901affaf7d0a403;p=nextcloud-server.git Use mimetype instead of type when defaulting in remote shares Signed-off-by: Vincent Petry --- diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js index bd3de5031ab..41bfbd2603e 100644 --- a/apps/files_sharing/js/sharedfilelist.js +++ b/apps/files_sharing/js/sharedfilelist.js @@ -355,7 +355,7 @@ file.shareOwnerId = share.owner } - if (!file.type) { + if (!file.mimetype) { // pending shares usually have no type, so default to showing a directory icon file.mimetype = 'dir-shared' }