From c7d11b93fc1a41937e5bfc1355b90d03df4a8419 Mon Sep 17 00:00:00 2001 From: Cilibiu Bogdan Date: Thu, 6 Dec 2018 18:34:06 +0200 Subject: [PATCH] update selection witout locked files (#859) --- src/app/directives/document-list.directive.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/app/directives/document-list.directive.ts b/src/app/directives/document-list.directive.ts index 54fc0bd699..d096d29c28 100644 --- a/src/app/directives/document-list.directive.ts +++ b/src/app/directives/document-list.directive.ts @@ -123,10 +123,12 @@ export class DocumentListDirective implements OnInit, OnDestroy { } private updateSelection() { - const selection = this.documentList.selection.map(entry => { - entry['isLibrary'] = this.isLibrary; - return entry; - }); + const selection = this.documentList.selection + .filter(node => !this.isLockedNode(node.entry)) + .map(node => { + node['isLibrary'] = this.isLibrary; + return node; + }); this.store.dispatch(new SetSelectedNodesAction(selection)); }