Fix nullref
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
parent
2d285eaba0
commit
f26ececb9b
@ -383,7 +383,7 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange
|
|||||||
this.selectionLayer=null;
|
this.selectionLayer=null;
|
||||||
if(this.mapEventHandlerInstalled && itemLayers.length==1 && this.getItemlayer(itemLayers[0]).item.itemType == 'vnd.farmmaps.itemtype.shape.processed') {
|
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]));
|
this.selectionLayer = this.createSelectionLayer(this.getItemlayer(itemLayers[0]));
|
||||||
olLayers.push(this.selectionLayer)
|
if(this.selectionLayer) olLayers.push(this.selectionLayer)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user