From fb2c396917da35e0edcc4be5b07aba788afaf764 Mon Sep 17 00:00:00 2001 From: mpetrov Date: Wed, 26 Feb 2025 18:35:33 +0200 Subject: [PATCH] minor refactoring --- ui-ngx/src/app/shared/components/js-func.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/shared/components/js-func.component.ts b/ui-ngx/src/app/shared/components/js-func.component.ts index dfb76b4620..7c7d14eff5 100644 --- a/ui-ngx/src/app/shared/components/js-func.component.ts +++ b/ui-ngx/src/app/shared/components/js-func.component.ts @@ -251,7 +251,7 @@ export class JsFuncComponent implements OnInit, OnChanges, OnDestroy, ControlVal ngOnChanges(changes: SimpleChanges): void { for (const propName of Object.keys(changes)) { const { firstChange, currentValue, previousValue } = changes[propName]; - const isChanged = isObject(currentValue) ? isEqual(currentValue, previousValue) : currentValue !== previousValue; + const isChanged = isObject(currentValue) ? !isEqual(currentValue, previousValue) : currentValue !== previousValue; if (!firstChange && isChanged) { this.updateByChangesPropName(propName); }