diff --git a/src/app/directives/document-list.directive.ts b/src/app/directives/document-list.directive.ts index 54fc0bd69..d096d29c2 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)); }