]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use mimetype instead of type when defaulting in remote shares
authorVincent Petry <vincent@nextcloud.com>
Mon, 19 Jul 2021 21:14:06 +0000 (23:14 +0200)
committerVincent Petry <vincent@nextcloud.com>
Tue, 27 Jul 2021 10:20:01 +0000 (12:20 +0200)
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
apps/files_sharing/js/sharedfilelist.js

index bd3de5031ab1a59a2e603b9e27f2ce397a8149e4..41bfbd2603eaf27c97812c1dd9971eaac9190855 100644 (file)
                                                        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'
                                                }