update isShared selection check

This commit is contained in:
Bogdan Cilibiu
2018-11-26 11:29:44 +02:00
parent 5b4af869b1
commit 15a41e3fff

View File

@@ -46,11 +46,16 @@ export class ToggleSharedComponent implements OnInit {
isShared(selection) {
// workaround for shared files
if (selection.first.entry && selection.first.entry.sharedByUser) {
if (
selection.first &&
selection.first.entry &&
selection.first.entry.sharedByUser
) {
return true;
}
return (
selection.first &&
selection.first.entry &&
selection.first.entry.properties &&
!!selection.first.entry.properties['qshare:sharedId']