diff --git a/packages/console/src/components/Launch/LaunchForm/StructInput.tsx b/packages/console/src/components/Launch/LaunchForm/StructInput.tsx index d43c08d85..71caa12ec 100644 --- a/packages/console/src/components/Launch/LaunchForm/StructInput.tsx +++ b/packages/console/src/components/Launch/LaunchForm/StructInput.tsx @@ -87,9 +87,9 @@ export const StructInput: React.FC = props => { jsonFormRenderable && value ? JSON.parse(value as string) : {}, ); - const onFormChange = React.useCallback(({ target: { value } }) => { - onChange(JSON.stringify(value)); - setParamData(value); + const onFormChange = React.useCallback(({ formData }) => { + onChange(JSON.stringify(formData)); + setParamData(formData); }, []); return jsonFormRenderable ? (