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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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 />;