fix judgement of generate button display

This commit is contained in:
JzoNg 2026-01-12 14:21:32 +08:00
parent 72bc396646
commit 4484261023
2 changed files with 1 additions and 2 deletions

View File

@ -34,7 +34,6 @@ const FormContent = ({
const [inputs, setInputs] = useState(defaultInputs)
const [isSubmitting, setIsSubmitting] = useState(false)
// use immer
const handleInputsChange = (name: string, value: any) => {
setInputs(prev => ({
...prev,

View File

@ -92,8 +92,8 @@ const useSingleRunFormParams = ({
}, [fetchURL])
const handleShowGeneratedForm = async (formValue: Record<string, any>) => {
await handleFetchFormContent(formValue)
setShowGeneratedForm(true)
await handleFetchFormContent(formValue)
}
const handleHideGeneratedForm = () => {