mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -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}
|
||||
dataViewState={dataViews}
|
||||
lens={lens}
|
||||
lensFormulaHelper={lensHelper.formula}
|
||||
lensFormulaHelper={lensHelper?.formula}
|
||||
searchSessionId={services.data.search.session.getSessionId()}
|
||||
onLoad={onLensLoaded}
|
||||
/>
|
||||
|
|
|
@ -48,5 +48,5 @@ export const useAppDataView = ({
|
|||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [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