From 6c08231f33aa9593f3d72f411cb1e11ed7a0561c Mon Sep 17 00:00:00 2001 From: loictrichaud <8958727+loictrichaud@users.noreply.github.com> Date: Mon, 10 Jun 2019 15:26:49 +0200 Subject: [PATCH] fix adf-delete directive NodeResult (#4827) --- lib/core/directives/node-delete.directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/directives/node-delete.directive.ts b/lib/core/directives/node-delete.directive.ts index 75a9e3edef..b9b7147152 100644 --- a/lib/core/directives/node-delete.directive.ts +++ b/lib/core/directives/node-delete.directive.ts @@ -110,7 +110,7 @@ export class NodeDeleteDirective implements OnChanges { let promise; - if (node.entry.hasOwnProperty('archivedAt')) { + if (node.entry.hasOwnProperty('archivedAt') && node.entry['archivedAt']) { promise = this.alfrescoApiService.nodesApi.purgeDeletedNode(id); } else { promise = this.alfrescoApiService.nodesApi.deleteNode(id, { permanent: this.permanent });