diff --git a/src/app/components/shared/toggle-shared/toggle-shared.component.ts b/src/app/components/shared/toggle-shared/toggle-shared.component.ts index bc037df33..57b37b89b 100644 --- a/src/app/components/shared/toggle-shared/toggle-shared.component.ts +++ b/src/app/components/shared/toggle-shared/toggle-shared.component.ts @@ -46,16 +46,11 @@ export class ToggleSharedComponent implements OnInit { isShared(selection) { // workaround for shared files - if ( - selection.first && - selection.first.entry && - selection.first.entry.sharedByUser - ) { + if (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']