fixed issue
This commit is contained in:
parent
78285ab5c2
commit
8210f983d3
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ fun HourlyWeatherDataDto.toHourlyWeatherDataMap(): Map<Int, List<HourlyWeatherDa
|
||||||
temperature = temperatures[index].roundToInt(),
|
temperature = temperatures[index].roundToInt(),
|
||||||
apparentTemperature = apparentTemperatures[index].roundToInt(),
|
apparentTemperature = apparentTemperatures[index].roundToInt(),
|
||||||
windSpeed = windSpeeds[index].roundToInt(),
|
windSpeed = windSpeeds[index].roundToInt(),
|
||||||
precipitationProbability = precipitationProbabilities[index],
|
precipitationProbability = if (index in precipitationProbabilities.indices) precipitationProbabilities[index] else null,
|
||||||
weatherType = WeatherType.fromWMO(weatherCodes[index])
|
weatherType = WeatherType.fromWMO(weatherCodes[index])
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Reference in a new issue