Skip to content

Commit

Permalink
fix(analytics): 🐛 visibilty state of the buttons should remain unchanged
Browse files Browse the repository at this point in the history
When user hides all series and then show one serie the rest of the buttons should remain in hidden state.
  • Loading branch information
jalezi committed Oct 31, 2024
1 parent da65d7c commit 19bddc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Analytics/CustomSeriesButtons/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const CustomSeriesButtons = function CustomSeriesButtons({ chart }) {
s.setState('normal');
});
}}
visible={buttonsVisibility}
visible={chart?.series[index]?.visible}
color={chart?.series[index]?.color}
borderColor={chart?.series[index]?.color}
variant="dynamic"
Expand Down

0 comments on commit 19bddc1

Please sign in to comment.