Zero index the forecast data

This commit is contained in:
Samer Albahra
2019-03-04 16:17:23 -06:00
parent de4ce48e39
commit bdeb5c4579

View File

@@ -75,7 +75,7 @@ function getOWMWeatherData( location, callback ) {
weather.icon = data.list[ 0 ].weather[ 0 ].icon;
weather.forecast = [];
for ( var index = 1; index < data.list.length; index++ ) {
for ( var index = 0; index < data.list.length; index++ ) {
weather.forecast.push( {
temp_min: parseInt( data.list[ index ].temp.min ),
temp_max: parseInt( data.list[ index ].temp.max ),