RED-9097: fixed workflow file attributes not updating.
This commit is contained in:
parent
12c5c1cb4e
commit
e737d134ad
@ -236,7 +236,11 @@ export class WorkflowComponent<T extends IListable, K extends string> extends Co
|
|||||||
|
|
||||||
private _shouldUpdate(entity: T): boolean {
|
private _shouldUpdate(entity: T): boolean {
|
||||||
const existingEntity = this.all[entity.id]?.entity;
|
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 {
|
private _shouldAdd(entity: T): boolean {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user