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

Bugfix

parent 7a5cbef1
No related branches found
No related tags found
No related merge requests found
...@@ -434,6 +434,11 @@ ...@@ -434,6 +434,11 @@
var calibrationForStation = getLocalSettings(["calibrationForStation"]) != null ? var calibrationForStation = getLocalSettings(["calibrationForStation"]) != null ?
JSON.parse(getLocalSettings(["calibrationForStation"])["calibrationForStation"])[weatherStationId] JSON.parse(getLocalSettings(["calibrationForStation"])["calibrationForStation"])[weatherStationId]
:{}; :{};
// If no keys for current weather station, create empty dict
if(calibrationForStation === undefined)
{
calibrationForStation = {};
}
for(var i=0; i< calibrationFieldNames.length;i++) for(var i=0; i< calibrationFieldNames.length;i++)
{ {
var key=calibrationFieldNames[i]; var key=calibrationFieldNames[i];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment