mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
fix form csa not triggering on page load
This commit is contained in:
parent
daaba6325d
commit
61b467ac11
1 changed files with 3 additions and 1 deletions
|
|
@ -93,7 +93,9 @@ const useAppData = (appId, moduleId, mode = 'edit', { environmentId, versionId }
|
|||
if (pageSwitchInProgress) {
|
||||
const currentPageEvents = events.filter((event) => event.target === 'page' && event.sourceId === currentPageId);
|
||||
setPageSwitchInProgress(false);
|
||||
handleEvent('onPageLoad', currentPageEvents, {});
|
||||
setTimeout(() => {
|
||||
handleEvent('onPageLoad', currentPageEvents, {});
|
||||
}, 0);
|
||||
}
|
||||
}, [pageSwitchInProgress, currentPageId]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue