From 8ce5cfc01b860c4e90eed58365f54a4ae5c1216c Mon Sep 17 00:00:00 2001 From: Shaurya Sharma <79473274+shaurya-sharma064@users.noreply.github.com> Date: Mon, 28 Oct 2024 11:44:41 +0530 Subject: [PATCH] Fixed query params not working (#2517) --- frontend/src/AppBuilder/QueryPanel/QueryPanel.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/AppBuilder/QueryPanel/QueryPanel.jsx b/frontend/src/AppBuilder/QueryPanel/QueryPanel.jsx index b07d4f73e1..827efe6d33 100644 --- a/frontend/src/AppBuilder/QueryPanel/QueryPanel.jsx +++ b/frontend/src/AppBuilder/QueryPanel/QueryPanel.jsx @@ -78,8 +78,10 @@ export const QueryPanel = ({ darkMode }) => { const onMouseDown = useCallback( (e) => { - e.preventDefault(); - if (isTopOfQueryPanel) setIsDraggingQueryPane(true); + if (isTopOfQueryPanel) { + e.preventDefault(); + setIsDraggingQueryPane(true); + } }, [isTopOfQueryPanel] );