Fix minimum marker for zero forecast values (#30892)
This commit is contained in:
parent
5304d98a8c
commit
e02106130e
1 changed files with 1 additions and 1 deletions
|
|
@ -194,7 +194,7 @@ export function filterForecastSlots(
|
|||
}
|
||||
|
||||
export function minSlotIndex(slots: ForecastSlot[]): number {
|
||||
return slots.reduce((min, s, i) => (s.value < (slots[min]?.value || Infinity) ? i : min), 0);
|
||||
return slots.reduce((min, s, i) => (s.value < (slots[min]?.value ?? Infinity) ? i : min), 0);
|
||||
}
|
||||
|
||||
export function maxSlotIndex(slots: ForecastSlot[]): number {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue