Merge pull request #7933 from ToolJet/appdef/version-querypath-update

[appdef] - fixes: webpage url on creating new version with multiple pages
This commit is contained in:
Arpit 2023-10-19 12:25:49 +05:30 committed by GitHub
commit d18f478c21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -716,6 +716,10 @@ const EditorComponent = (props) => {
isUpdatingEditorStateInProcess: false,
});
if (versionSwitched) {
props?.navigate(`/${getWorkspaceId()}/apps/${appId}/${appJson.pages[homePageId]?.handle}`);
}
await useDataSourcesStore.getState().actions.fetchGlobalDataSources(data?.organization_id);
await fetchDataSources(data.editing_version?.id);
await fetchDataQueries(data.editing_version?.id, true, true);