From 3d8ce7ee74ba82801a2d7e3f13d674d78ddc4476 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Fri, 5 Mar 2021 19:03:50 +0100 Subject: [PATCH] Fix null check --- projects/common-map/src/fm-map/effects/map.effects.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/common-map/src/fm-map/effects/map.effects.ts b/projects/common-map/src/fm-map/effects/map.effects.ts index d812b01..1f6bb1f 100644 --- a/projects/common-map/src/fm-map/effects/map.effects.ts +++ b/projects/common-map/src/fm-map/effects/map.effects.ts @@ -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) {