mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Synthetics] Do not re-render embeddable visualizations on detail/history page onLoad
(#156219)
Co-authored-by: shahzad31 <shahzad31comp@gmail.com>
This commit is contained in:
parent
527ab4b2da
commit
7b947188f2
2 changed files with 2 additions and 2 deletions
|
@ -138,7 +138,7 @@ export function getExploratoryViewEmbeddable(
|
||||||
{...embedProps}
|
{...embedProps}
|
||||||
dataViewState={dataViews}
|
dataViewState={dataViews}
|
||||||
lens={lens}
|
lens={lens}
|
||||||
lensFormulaHelper={lensHelper.formula}
|
lensFormulaHelper={lensHelper?.formula}
|
||||||
searchSessionId={services.data.search.session.getSessionId()}
|
searchSessionId={services.data.search.session.getSessionId()}
|
||||||
onLoad={onLensLoaded}
|
onLoad={onLensLoaded}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -48,5 +48,5 @@ export const useAppDataView = ({
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [dataViewTitle, seriesDataType, JSON.stringify(series)]);
|
}, [dataViewTitle, seriesDataType, JSON.stringify(series)]);
|
||||||
|
|
||||||
return { dataViews, loading };
|
return { dataViews, loading: loading && !dataViews[seriesDataType] };
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue