mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-23 18:05:09 +00:00
fix adf-delete directive NodeResult (#4827)
This commit is contained in:
parent
117050decf
commit
6c08231f33
@ -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 });
|
||||
|
Loading…
x
Reference in New Issue
Block a user