From b8c4e8cf3dca2902355e9d07d61ce5d63b17f381 Mon Sep 17 00:00:00 2001 From: Majk Shkurti Date: Wed, 3 Jul 2024 10:46:41 +0200 Subject: [PATCH] fix: layer style --- apps/web/components/map/panels/style/LayerStyle.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/web/components/map/panels/style/LayerStyle.tsx b/apps/web/components/map/panels/style/LayerStyle.tsx index 1c5ca834..56614f83 100644 --- a/apps/web/components/map/panels/style/LayerStyle.tsx +++ b/apps/web/components/map/panels/style/LayerStyle.tsx @@ -394,15 +394,16 @@ const LayerStylePanel = ({ projectId }: { projectId: string }) => { collapsed={collapseStrokeColorOptions} selectedField={activeLayer?.properties.stroke_color_field} onStyleChange={async (newStyle: FeatureLayerProperties) => { + console.log(activeLayer); if ( newStyle.stroke_color_field?.type === "number" && - newStyle.color_scale !== "ordinal" + newStyle.stroke_color_scale !== "ordinal" ) { await updateColorClassificationBreaks( "stroke_color", newStyle, ); - } else if (newStyle.color_scale === "ordinal") { + } else if (newStyle.stroke_color_scale === "ordinal") { await updateOrdinalValues("stroke_color", newStyle); } updateLayerStyle(newStyle);