From 412f5ad837fb5b95a4df415ca6bd7ec3be6f102d Mon Sep 17 00:00:00 2001 From: devanshu052000 Date: Wed, 25 Jun 2025 18:30:12 +0530 Subject: [PATCH] Fix: App crashing on component drop --- frontend/src/AppBuilder/AppCanvas/ConfigHandle/ConfigHandle.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/AppBuilder/AppCanvas/ConfigHandle/ConfigHandle.jsx b/frontend/src/AppBuilder/AppCanvas/ConfigHandle/ConfigHandle.jsx index 05306724fa..f25d815159 100644 --- a/frontend/src/AppBuilder/AppCanvas/ConfigHandle/ConfigHandle.jsx +++ b/frontend/src/AppBuilder/AppCanvas/ConfigHandle/ConfigHandle.jsx @@ -53,7 +53,7 @@ export const ConfigHandle = ({ ); }, shallow); - const currentPageIndex = useStore((state) => state.currentPageIndex); + const currentPageIndex = useStore((state) => state.modules.canvas.currentPageIndex); const component = useStore((state) => state.modules.canvas.pages[currentPageIndex].components[id]); const featureAccess = useStore((state) => state?.license?.featureAccess, shallow); const licenseValid = !featureAccess?.licenseStatus?.isExpired && featureAccess?.licenseStatus?.isLicenseValid;