From 7364dbc1ee721302579675795abc4efa5f84a2f5 Mon Sep 17 00:00:00 2001 From: Bogdan Cilibiu Date: Mon, 26 Nov 2018 11:35:45 +0200 Subject: [PATCH] Revert "update isShared selection check" This reverts commit 15a41e3fffa8ec8cc9bdeb672ebb7592b685be75. --- .../shared/toggle-shared/toggle-shared.component.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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']