mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
[ML] Fixes timefilter refresh subscription.
This commit is contained in:
parent
3d1c43d331
commit
aa9555d930
1 changed files with 7 additions and 1 deletions
|
@ -103,7 +103,13 @@ export const TopNav: FC = () => {
|
|||
isAutoRefreshOnly={!isTimeRangeSelectorEnabled}
|
||||
refreshInterval={refreshInterval.value}
|
||||
onTimeChange={updateFilter}
|
||||
onRefresh={() => mlTimefilterRefresh$.next()}
|
||||
onRefresh={() => {
|
||||
// This check is a workaround to catch a bug in EuiSuperDatePicker which
|
||||
// might not have disabled the refresh interval after a props change.
|
||||
if (!refreshInterval.pause) {
|
||||
mlTimefilterRefresh$.next();
|
||||
}
|
||||
}}
|
||||
onRefreshChange={updateInterval}
|
||||
recentlyUsedRanges={recentlyUsedRanges}
|
||||
dateFormat={dateFormat}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue