From 067bef420f9b77f6769bdde224a07700eb90d860 Mon Sep 17 00:00:00 2001 From: Jose Buitron Date: Thu, 11 Apr 2024 17:48:53 -0500 Subject: [PATCH] fix: Fixed style name --- src/gis/components/MapStyleSwitcher.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gis/components/MapStyleSwitcher.js b/src/gis/components/MapStyleSwitcher.js index d4a84986e8..2f29c9e041 100644 --- a/src/gis/components/MapStyleSwitcher.js +++ b/src/gis/components/MapStyleSwitcher.js @@ -59,11 +59,11 @@ const MapStyleSwitcher = props => { const changeStylePartial = useCallback( newStyle => () => { - if (newStyle.title === styleName) { + if (newStyle.titleKey === styleName) { handleClose(); return; } - setStyleName(newStyle.title); + setStyleName(newStyle.titleKey); changeStyle(newStyle.data); handleClose(); },