fix(dashboard): Prevent rerendering View Query modal on window resize (#15172)

* fix(dashboard): Prevent rerendering View Query modal on window resize

* Fix lint
This commit is contained in:
Kamil Gabryjelski
2021-06-15 13:16:31 +02:00
committed by GitHub
parent 53225e8d17
commit 5316dc89a8

View File

@@ -80,7 +80,7 @@ const ViewQueryModal: React.FC<Props> = props => {
};
useEffect(() => {
loadChartData('query');
}, [props.latestQueryFormData]);
}, [JSON.stringify(props.latestQueryFormData)]);
if (isLoading) {
return <Loading />;