Timewindow: fixed updating aggregation interval

This commit is contained in:
Ekaterina Chantsova 2025-07-21 16:19:06 +03:00
parent d95a00e4af
commit 81a5a3c3ea

View File

@ -421,6 +421,7 @@ export class TimewindowPanelComponent extends PageComponent implements OnInit, O
realtimeType: timewindowFormValue.realtime.realtimeType, realtimeType: timewindowFormValue.realtime.realtimeType,
timewindowMs: timewindowFormValue.realtime.timewindowMs, timewindowMs: timewindowFormValue.realtime.timewindowMs,
quickInterval: timewindowFormValue.realtime.quickInterval, quickInterval: timewindowFormValue.realtime.quickInterval,
interval: timewindowFormValue.realtime.interval,
}}; }};
} else { } else {
this.timewindow.history = {...this.timewindow.history, ...{ this.timewindow.history = {...this.timewindow.history, ...{
@ -428,13 +429,11 @@ export class TimewindowPanelComponent extends PageComponent implements OnInit, O
timewindowMs: timewindowFormValue.history.timewindowMs, timewindowMs: timewindowFormValue.history.timewindowMs,
fixedTimewindow: timewindowFormValue.history.fixedTimewindow, fixedTimewindow: timewindowFormValue.history.fixedTimewindow,
quickInterval: timewindowFormValue.history.quickInterval, quickInterval: timewindowFormValue.history.quickInterval,
interval: timewindowFormValue.history.interval,
}}; }};
} }
if (this.aggregation) { if (this.aggregation) {
this.timewindow.realtime.interval = timewindowFormValue.realtime.interval;
this.timewindow.history.interval = timewindowFormValue.history.interval;
this.timewindow.aggregation = { this.timewindow.aggregation = {
type: timewindowFormValue.aggregation.type, type: timewindowFormValue.aggregation.type,
limit: timewindowFormValue.aggregation.limit limit: timewindowFormValue.aggregation.limit