Skip to content

Commit

Permalink
update isShared check (#828)
Browse files Browse the repository at this point in the history
  • Loading branch information
pionnegru authored Nov 26, 2018
1 parent 7364dbc commit ec4f1a6
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit ec4f1a6

Please sign in to comment.