diff --git a/.changeset/witty-icons-whisper.md b/.changeset/witty-icons-whisper.md new file mode 100644 index 000000000..dd6161f87 --- /dev/null +++ b/.changeset/witty-icons-whisper.md @@ -0,0 +1,5 @@ +--- +"@orchestrator-ui/orchestrator-ui-components": patch +--- + +Fixed caching issue when switching from Create Node to create Corelink form caused 400 error diff --git a/packages/orchestrator-ui-components/src/pages/processes/WfoStartProcessPage.tsx b/packages/orchestrator-ui-components/src/pages/processes/WfoStartProcessPage.tsx index 932140264..af823bcb6 100644 --- a/packages/orchestrator-ui-components/src/pages/processes/WfoStartProcessPage.tsx +++ b/packages/orchestrator-ui-components/src/pages/processes/WfoStartProcessPage.tsx @@ -170,12 +170,14 @@ export const WfoStartProcessPage = ({ hasNext: json.meta?.hasNext ?? false, }); }; - handlePromiseErrorWithCallback( submit([]), HttpStatus.FormNotComplete, clientResultCallback, ); + return () => { + setForm({}); + }; } }, [submit, processName]);