Skip to content

Commit 47e5bd2

Browse files
authored
TimeSeries/Trend: Fix infinite loop (#107615)
1 parent c02f76d commit 47e5bd2

File tree

1 file changed

+2
-2
lines changed
  • public/app/core/components/TimeSeries

1 file changed

+2
-2
lines changed

public/app/core/components/TimeSeries/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,13 +394,13 @@ export const preparePlotConfigBuilder: UPlotConfigPrepFn = ({
394394
else {
395395
// scan right
396396
let leftIdx = 0;
397-
while (yData[leftIdx] == null) {
397+
while (yData[leftIdx] === null) {
398398
leftIdx++;
399399
}
400400

401401
// scan left
402402
let rightIdx = yData.length - 1;
403-
while (rightIdx >= leftIdx && yData[rightIdx] == null) {
403+
while (rightIdx >= leftIdx && yData[rightIdx] === null) {
404404
rightIdx--;
405405
}
406406

0 commit comments

Comments
 (0)