Fix nullref
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Willem Dantuma 2021-02-02 14:45:33 +01:00
parent 2d285eaba0
commit f26ececb9b

View File

@ -383,7 +383,7 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange
this.selectionLayer=null;
if(this.mapEventHandlerInstalled && itemLayers.length==1 && this.getItemlayer(itemLayers[0]).item.itemType == 'vnd.farmmaps.itemtype.shape.processed') {
this.selectionLayer = this.createSelectionLayer(this.getItemlayer(itemLayers[0]));
olLayers.push(this.selectionLayer)
if(this.selectionLayer) olLayers.push(this.selectionLayer)
}
}
}