Feat: Fixed the issue where the page would refresh continuously when opening the sheet on the right side of the canvas #3221 (#7756)

### What problem does this PR solve?

Feat: Fixed the issue where the page would refresh continuously when
opening the sheet on the right side of the canvas #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-05-21 17:03:16 +08:00
committed by GitHub
parent e3e7c7ddaa
commit 754a5e1cee
5 changed files with 125 additions and 11 deletions

View File

@ -320,7 +320,10 @@ export const useHandleFormValuesChange = (
category_description: buildCategorizeObjectFromList(value.items),
};
}
updateNodeForm(id, nextValues);
if (type) {
// Manually triggered form updates are synchronized to the canvas
updateNodeForm(id, nextValues);
}
}
});
return () => subscription?.unsubscribe();