mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[ML] Fixes chart in single metric anomaly detection wizard (#214837)
Fixes an issue with the single metric wizard chart where an error is thrown when attempting to adjust the buckets of the previous batch of loaded results. **Before**   **After** 
This commit is contained in:
parent
8241bd7e6c
commit
d10e1f8f17
1 changed files with 1 additions and 3 deletions
|
@ -209,9 +209,7 @@ export class ResultsLoader {
|
|||
// set the _lastModelTimeStamp to be 5 buckets behind so we load the correct
|
||||
// section of results next time.
|
||||
this._lastModelTimeStamp = model[model.length - 5].time;
|
||||
for (let i = 0; i < 5; i++) {
|
||||
this._results.model[dtrIndex].pop();
|
||||
}
|
||||
this._results.model[dtrIndex] = this._results.model[dtrIndex].slice(0, -5);
|
||||
}
|
||||
|
||||
// return a new array from the old and new model
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue