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

Bugfix: Remove direct assignment inside if statement

parent 339eee88
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ async function switchLayer(dayIndex)
if(layers[i].getVisible())
{
// See if there is a language specific legend available
if(document.getElementById("layerLegend").innerHTML=currentLayer.Abstract != undefined)
if(currentLayer.Abstract != undefined)
{
document.getElementById("layerLegend").innerHTML=currentLayer.Abstract;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment