mirror of https://github.com/langgenius/dify.git
fix judgement of generate button display
This commit is contained in:
parent
72bc396646
commit
4484261023
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -92,8 +92,8 @@ const useSingleRunFormParams = ({
|
|||
}, [fetchURL])
|
||||
|
||||
const handleShowGeneratedForm = async (formValue: Record<string, any>) => {
|
||||
await handleFetchFormContent(formValue)
|
||||
setShowGeneratedForm(true)
|
||||
await handleFetchFormContent(formValue)
|
||||
}
|
||||
|
||||
const handleHideGeneratedForm = () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue