fix adf-delete directive NodeResult (#4827)

This commit is contained in:
loictrichaud 2019-06-10 15:26:49 +02:00 committed by Eugenio Romano
parent 117050decf
commit 6c08231f33

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 });