From 5316dc89a8293ec30fbfd8bb4a530663a45d30b1 Mon Sep 17 00:00:00 2001 From: Kamil Gabryjelski Date: Tue, 15 Jun 2021 13:16:31 +0200 Subject: [PATCH] fix(dashboard): Prevent rerendering View Query modal on window resize (#15172) * fix(dashboard): Prevent rerendering View Query modal on window resize * Fix lint --- .../src/explore/components/controls/ViewQueryModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset-frontend/src/explore/components/controls/ViewQueryModal.tsx b/superset-frontend/src/explore/components/controls/ViewQueryModal.tsx index 1234613b5..dadaacec3 100644 --- a/superset-frontend/src/explore/components/controls/ViewQueryModal.tsx +++ b/superset-frontend/src/explore/components/controls/ViewQueryModal.tsx @@ -80,7 +80,7 @@ const ViewQueryModal: React.FC = props => { }; useEffect(() => { loadChartData('query'); - }, [props.latestQueryFormData]); + }, [JSON.stringify(props.latestQueryFormData)]); if (isLoading) { return ;