Skip to content
Snippets Groups Projects
Commit 5ac271f9 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Handling GRID forecasts

parent b328a7fd
Branches
No related tags found
No related merge requests found
......@@ -593,7 +593,7 @@ function updateForecastSummaries()
{
var forecastSummary = cachedForecastSummaries[i];
// Filter by crop
if(selectedCropIds.indexOf(forecastSummary.cropOrganismId.organismId) < 0)
if(forecastSummary.cropOrganismId == null || selectedCropIds.indexOf(forecastSummary.cropOrganismId.organismId) < 0)
{
continue;
}
......@@ -684,7 +684,7 @@ function getForecastSummariesForPoi(poiId)
for(var i in cachedForecastSummaries)
{
var forecastSummary = cachedForecastSummaries[i];
if(selectedCropIds.indexOf(forecastSummary.cropOrganismId.organismId) < 0)
if(forecastSummary.cropOrganismId == null || selectedCropIds.indexOf(forecastSummary.cropOrganismId.organismId) < 0)
{
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment