diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-07-19 23:14:06 +0200 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2021-08-10 13:27:59 +0200 |
commit | 5b111961ae68b1334f2dbef028627adc4b8c9341 (patch) | |
tree | bc6759493cceb25d9816a099d7b932ce4ac9d031 | |
parent | df0ca2f1db8b3bacf8fd6b9b927f370b377acdee (diff) | |
download | nextcloud-server-5b111961ae68b1334f2dbef028627adc4b8c9341.tar.gz nextcloud-server-5b111961ae68b1334f2dbef028627adc4b8c9341.zip |
Use mimetype instead of type when defaulting in remote shares
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
-rw-r--r-- | apps/files_sharing/js/sharedfilelist.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js index 17c72db1ffc..4e364f92077 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' } |