Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdotson committed Jan 25, 2021
1 parent 89f1ecd commit e899383
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,15 @@ export default function DateFilterControl(props: DateFilterLabelProps) {
setTooltipTitle(value || '');
}
setValidTimeRange(true);
setFrame(guessFrame(value));
}
});
}, [value]);

useEffect(() => {
if (isMounted) {
onChange('Last week');
setTimeRangeValue('Last week');
setFrame(guessFrame('Last week'));
}
}, [datasource]);

Expand Down

0 comments on commit e899383

Please sign in to comment.