aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2021-07-19 23:14:06 +0200
committerVincent Petry <vincent@nextcloud.com>2021-08-10 13:27:59 +0200
commit5b111961ae68b1334f2dbef028627adc4b8c9341 (patch)
treebc6759493cceb25d9816a099d7b932ce4ac9d031
parentdf0ca2f1db8b3bacf8fd6b9b927f370b377acdee (diff)
downloadnextcloud-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.js2
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'
}