diff --git a/packages/trpc-panel/src/react-app/components/form/ProcedureForm/index.tsx b/packages/trpc-panel/src/react-app/components/form/ProcedureForm/index.tsx index 4c158c0..59a9bae 100644 --- a/packages/trpc-panel/src/react-app/components/form/ProcedureForm/index.tsx +++ b/packages/trpc-panel/src/react-app/components/form/ProcedureForm/index.tsx @@ -120,11 +120,14 @@ export function ProcedureForm({ const [shouldReset, setShouldReset] = useState(false); useEffect(() => { if (shouldReset) { - resetForm(defaultFormValuesForNode(procedure.node), { - keepValues: false, - keepDirtyValues: false, - keepDefaultValues: false, - }); + resetForm( + { [ROOT_VALS_PROPERTY_NAME]: defaultFormValuesForNode(procedure.node) }, + { + keepValues: false, + keepDirtyValues: false, + keepDefaultValues: false, + } + ); setShouldReset(false); } }, [shouldReset]);