From 54312abb6cc020e6ed213daafdaa2748ab390dec Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Wed, 8 May 2024 13:34:38 +0300 Subject: [PATCH] RED-9097: fixed workflow file attributes not updating. --- src/lib/listing/workflow/workflow.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/listing/workflow/workflow.component.ts b/src/lib/listing/workflow/workflow.component.ts index c3f1d5e..43345de 100644 --- a/src/lib/listing/workflow/workflow.component.ts +++ b/src/lib/listing/workflow/workflow.component.ts @@ -236,7 +236,11 @@ export class WorkflowComponent extends Co private _shouldUpdate(entity: T): boolean { const existingEntity = this.all[entity.id]?.entity; - return existingEntity && this.config.itemVersionFn(entity) !== this.config.itemVersionFn(existingEntity); + return ( + existingEntity && + (this.config.itemVersionFn(entity) !== this.config.itemVersionFn(existingEntity) || + JSON.stringify(entity) !== JSON.stringify(existingEntity)) + ); } private _shouldAdd(entity: T): boolean {