hotfix: search handles null values instead of arrays full of nulls
This commit is contained in:
parent
85efd83485
commit
7a6be53e0b
@ -205,7 +205,7 @@ function calculateScoreForPeriod(type, travelPeriods, region, searchLowParam, se
|
|||||||
const singleScores = travelPeriods. map(period => {
|
const singleScores = travelPeriods. map(period => {
|
||||||
let res = {
|
let res = {
|
||||||
type: type,
|
type: type,
|
||||||
value: region[type][period.month - 1],
|
value: region[type] !== null ? region[type][period.month - 1] : null,
|
||||||
days: period.days
|
days: period.days
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user