mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
fixes: enable and disable pages
This commit is contained in:
parent
b101951152
commit
b8b3e31ca3
1 changed files with 3 additions and 0 deletions
|
|
@ -811,6 +811,8 @@ const EditorComponent = (props) => {
|
|||
const paramDiff = computeComponentPropertyDiff(appDefinitionDiff, appDefinition, appDiffOptions);
|
||||
const updateDiff = computeAppDiff(paramDiff, currentPageId, appDiffOptions);
|
||||
|
||||
console.log('----arpit::', { paramDiff, updateDiff });
|
||||
|
||||
updateAppVersion(appId, editingVersion?.id, currentPageId, updateDiff, isUserSwitchedVersion)
|
||||
.then(() => {
|
||||
const _editingVersion = {
|
||||
|
|
@ -1242,6 +1244,7 @@ const EditorComponent = (props) => {
|
|||
|
||||
newAppDefinition.pages[pageId].disabled = isDisabled ?? false;
|
||||
|
||||
switchPage(pageId);
|
||||
appDefinitionChanged(newAppDefinition, {
|
||||
pageDefinitionChanged: true,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue