Skip to content

Commit

Permalink
[Metrics UI] Fix first load in Inventory view (#94306)
Browse files Browse the repository at this point in the history
* Revert inventory changes from commit fa4dda0

* Remove not needed comment
  • Loading branch information
estermv authored Mar 10, 2021
1 parent dcaa3f6 commit fe12205
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ export const useWaffleViewState = () => {
region: newState.region,
legend: newState.legend,
});
// if this is the "Default View" view, don't update the time range to the view's time range,
// this way it will use the global Kibana time or the default time already set
if (newState.time && newState.id !== '0') {

if (newState.time) {
setWaffleTimeState({
currentTime: newState.time,
isAutoReloading: newState.autoReload,
Expand All @@ -102,5 +101,4 @@ export type WaffleViewState = WaffleOptionsState & {
time: number;
autoReload: boolean;
filterQuery: WaffleFiltersState;
id?: string;
};

0 comments on commit fe12205

Please sign in to comment.