mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Redux should update after timefilter has changed (not before) (#20719)
This commit is contained in:
parent
db7c08ddcc
commit
423a961a1f
1 changed files with 5 additions and 1 deletions
|
@ -50,10 +50,14 @@ export function initTimepicker(history, dispatch) {
|
|||
|
||||
history.listen(() => {
|
||||
updateRefreshRate(dispatch);
|
||||
dispatch(updateTimePickerAction());
|
||||
globalState.fetch(); // ensure global state is updated when url changes
|
||||
});
|
||||
|
||||
// ensure that redux is notified after timefilter has updated
|
||||
$scope.$listen(timefilter, 'timeUpdate', () =>
|
||||
dispatch(updateTimePickerAction())
|
||||
);
|
||||
|
||||
// ensure that timepicker updates when global state changes
|
||||
registerTimefilterWithGlobalState(globalState);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue