From 3deffc31615fa118565084ff2901affaf7d0a403 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 19 Jul 2021 23:14:06 +0200 Subject: [PATCH] Use mimetype instead of type when defaulting in remote shares Signed-off-by: Vincent Petry --- apps/files_sharing/js/sharedfilelist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' } -- 2.39.5