mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-22 00:19:04 +00:00
Fix: App crashing on component drop
This commit is contained in:
parent
284356d797
commit
412f5ad837
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue