diff --git a/src/fireedge/src/client/containers/TestApi/ResponseForm.js b/src/fireedge/src/client/containers/TestApi/ResponseForm.js index e60ca46b78..8a6c1ebdd8 100644 --- a/src/fireedge/src/client/containers/TestApi/ResponseForm.js +++ b/src/fireedge/src/client/containers/TestApi/ResponseForm.js @@ -76,76 +76,75 @@ const ResponseForm = ({ onSubmit={handleSubmit(onSubmit)} autoComplete="off" > - {memoParams?.map(([paramName, { default: defaultValue }]) => { - const { message: errorMessage } = formState.errors[paramName] ?? {} - - return ( - - - ({ - boolean: ( - onChange(e.target.checked)} - /> - } - label={paramName} - labelPlacement="end" - /> - ), - object: ( - onChange(newValue ?? '')} - renderTags={(tags, getTagProps) => - tags.map((tag, index) => ( - - )) - } - renderInput={(inputProps) => ( - - )} - /> - ), - }[typeof defaultValue] ?? ( - ( + + + ({ + boolean: ( + onChange(e.target.checked)} + /> + } label={paramName} - color="secondary" - onChange={onChange} - {...controllerProps} + labelPlacement="end" /> - )) - } - control={control} - name={`${paramName}`} - defaultValue={defaultValue} - /> - - ) - })} + ), + object: ( + onChange(newValue ?? '')} + renderTags={(tags, getTagProps) => + tags.map((tag, index) => ( + + )) + } + renderInput={(inputProps) => ( + + )} + /> + ), + }[typeof defaultValue] ?? ( + + )) + } + control={control} + name={`${paramName}`} + defaultValue={defaultValue} + /> + + ))}