From 0de8b485b351c3726a47d18276ec52c01eaa0057 Mon Sep 17 00:00:00 2001 From: jolevesq Date: Fri, 3 Nov 2023 13:14:44 +0000 Subject: [PATCH] Build: (a14586c) Merge pull request #42 from Alex-NRCan/fix-x-y-sliders-states Keep the state of X and Y slider values for the next rendering. (#42) --- main.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.js b/main.js index 0965546..ae58776 100644 --- a/main.js +++ b/main.js @@ -44653,6 +44653,9 @@ function GeoChart(props) { // Calculate filterings calculateFiltering(selectedDatasource, newValue, ySliderValues); + // Set the X State + setXSliderValues(newValue); + // Callback onSliderXChanged === null || onSliderXChanged === void 0 || onSliderXChanged(newValue); }; @@ -44665,6 +44668,9 @@ function GeoChart(props) { // Calculate filterings calculateFiltering(selectedDatasource, xSliderValues, newValue); + // Set the Y State + setYSliderValues(newValue); + // Callback onSliderYChanged === null || onSliderYChanged === void 0 || onSliderYChanged(newValue); };