Browse Source

UI: Fixed entity aggregation cf not apply offset

pull/14253/head
Vladyslav_Prykhodko 11 months ago
parent
commit
4c0cf4e0e6
  1. 4
      ui-ngx/src/app/modules/home/components/calculated-fields/components/entity-aggregation-configuration/entity-aggregation-component.component.ts

4
ui-ngx/src/app/modules/home/components/calculated-fields/components/entity-aggregation-configuration/entity-aggregation-component.component.ts

@ -38,7 +38,7 @@ import {
import { filter, map } from 'rxjs/operators'; import { filter, map } from 'rxjs/operators';
import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
import { AVG_MONTH, AVG_QUARTER, DAY, HOUR, MINUTE, SECOND, YEAR } from '@shared/models/time/time.models'; import { AVG_MONTH, AVG_QUARTER, DAY, HOUR, MINUTE, SECOND, YEAR } from '@shared/models/time/time.models';
import { isDefinedAndNotNull } from '@core/utils'; import { deepClone, isDefinedAndNotNull } from '@core/utils';
import { getCurrentAuthState } from '@core/auth/auth.selectors'; import { getCurrentAuthState } from '@core/auth/auth.selectors';
import { Store } from '@ngrx/store'; import { Store } from '@ngrx/store';
import { AppState } from '@core/core.state'; import { AppState } from '@core/core.state';
@ -156,7 +156,7 @@ export class EntityAggregationComponentComponent implements ControlValueAccessor
this.entityAggregationConfiguration.valueChanges.pipe( this.entityAggregationConfiguration.valueChanges.pipe(
takeUntilDestroyed() takeUntilDestroyed()
).subscribe((value: CalculatedFieldEntityAggregationConfigurationValue) => { ).subscribe((value: CalculatedFieldEntityAggregationConfigurationValue) => {
this.updatedModel(value); this.updatedModel(deepClone(value));
}); });
} }

Loading…
Cancel
Save