[Metrics UI] Fix first load in Inventory view (#94306)
* Revert inventory changes from commit fa4dda0def
* Remove not needed comment
This commit is contained in:
parent
dcaa3f6464
commit
fe1220506e
|
@ -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,
|
||||
|
@ -102,5 +101,4 @@ export type WaffleViewState = WaffleOptionsState & {
|
|||
time: number;
|
||||
autoReload: boolean;
|
||||
filterQuery: WaffleFiltersState;
|
||||
id?: string;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue