From da3ca90d9a5ee6053d98cdebbdeb65546de9c86b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Barrenechea=20S=C3=A1nchez?= Date: Fri, 28 Jun 2024 16:50:26 +0200 Subject: [PATCH] Put only rangeland-system, rangeland-biomes and rangeland-ecoregions at the bottom --- client/src/containers/map/layer-manager/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/containers/map/layer-manager/index.tsx b/client/src/containers/map/layer-manager/index.tsx index 5a8beba..c42cb8f 100644 --- a/client/src/containers/map/layer-manager/index.tsx +++ b/client/src/containers/map/layer-manager/index.tsx @@ -54,7 +54,8 @@ const LayerManager = () => { }, [layers, layersSettings, setLayersSettings]); const LAYERS = layers.toSorted((a) => { - return a.includes("rangeland") ? 1 : -1; + const bottomSlugs = ["rangeland-system", "rangeland-biomes", "rangeland-ecoregions"] + return bottomSlugs.includes(a) ? 1 : -1; }); return (