Skip to content

Commit

Permalink
[#430][#432] Fix main chart value when show empty value changed
Browse files Browse the repository at this point in the history
  • Loading branch information
wayangalihpratama committed Oct 12, 2023
1 parent ef0dc4d commit ad3e4cd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions frontend/src/pages/main/MainChart.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,15 @@ const MainChart = ({ current, question }) => {
emptyValueCheckboxSetting={{
show: true,
checked: showEmptyValueOnStackedChart,
handleOnCheck: () =>
handleOnCheck: () => {
setLoadingChartData(true);
setShowEmptyValueOnStackedChart(
!showEmptyValueOnStackedChart
),
);
setTimeout(() => {
setLoadingChartData(false);
}, 500);
},
}}
/>
) : loadingChartData ? (
Expand Down

0 comments on commit ad3e4cd

Please sign in to comment.