Use mimetype instead of type when defaulting in remote shares

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
pull/27751/head
Vincent Petry 2021-07-19 23:14:06 +07:00
parent e8f4a524a2
commit 3deffc3161
No known key found for this signature in database
GPG Key ID: E055D6A4D513575C
1 changed files with 1 additions and 1 deletions

@ -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'
}