fix adf-delete directive NodeResult (#4827)

This commit is contained in:
loictrichaud
2019-06-10 14:26:49 +01:00
committed by Eugenio Romano
parent 117050decf
commit 6c08231f33
+1 -1
View File
@@ -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 });