Fixed scroll issue while configuring workflow (#23142)

This commit is contained in:
沙什瓦特
2025-08-19 11:03:54 +05:30
committed by GitHub
parent 2a0991c259
commit 511be7386c
@@ -109,6 +109,15 @@ function WorkflowPage({ workflow: workflowId }: PageProps) {
const isPending = isPendingWorkflow || isPendingEventTypes;
useEffect(() => {
requestAnimationFrame(() => {
window.scrollTo({
top: 0,
behavior: "smooth",
});
});
}, [isPending]);
useEffect(() => {
if (!isPending) {
setFormData(workflow);