Skip to content

Commit

Permalink
Fix RangeSelectorButton not passing chart instance
Browse files Browse the repository at this point in the history
  • Loading branch information
anajavi committed Sep 27, 2019
1 parent ed43336 commit 1df5ca3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const getButtonIndex = (props, chart) => {
const addButton = (config, chart) => {
// Add button to array
const buttons = [
...getButtons(),
...getButtons(chart),
config
];
updateRangeSelectorButtons(buttons, chart);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const RangeSelectorInput = ({ enabled = true, ...restProps}) => {

useEffect(() => {
if (modifiedProps !== false) {
updateRangeSelectorInputs(modifiedProps);
updateRangeSelectorInputs(modifiedProps, chart);
}
});

Expand Down

0 comments on commit 1df5ca3

Please sign in to comment.