fixes: Created a new version with multiple pages from second page, the new version shows the homepage with second page URL

This commit is contained in:
arpitnath 2023-10-17 17:42:38 +05:30
parent 91ff545d4e
commit 931028ca49

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