Fix null check
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
aa308abbb0
commit
3d8ce7ee74
@ -306,7 +306,7 @@ export class MapEffects {
|
||||
return this.itemService$.getLayerValue(action.itemLayer.item.code,action.itemLayer.layerIndex,action.x,action.y).pipe(
|
||||
mergeMap((v: number) => {
|
||||
let a=[];
|
||||
if(v) {
|
||||
if(v !== null) {
|
||||
if(l.renderer && l.renderer.colorMap && l.renderer.colorMap.colormapType == "manual") {
|
||||
l.renderer.colorMap.entries.forEach((e) => {
|
||||
if(e.value == v) {
|
||||
|
Loading…
Reference in New Issue
Block a user