Fix: App crashing on component drop

This commit is contained in:
devanshu052000 2025-06-25 18:30:12 +05:30
parent 284356d797
commit 412f5ad837

View file

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