syntax error

pull/13166/head
Obada Khalili 1 year ago
parent 84a7a61c48
commit ae94584b3e

@ -181,7 +181,8 @@ function Form<
editable
/>
</div>
: <Input
: <>
<Input
className={cn(inputClassName, `${disabled && 'cursor-not-allowed opacity-60'}`)}
value={(isShowDefaultValue && ((value[variable] as string) === '' || value[variable] === undefined || value[variable] === null)) ? formSchema.default : value[variable]}
onChange={val => handleFormChange(variable, val)}
@ -194,6 +195,7 @@ function Form<
{...(formSchema.type === FormTypeEnum.textNumber ? { min: (formSchema as CredentialFormSchemaNumberInput).min, max: (formSchema as CredentialFormSchemaNumberInput).max } : {})} />
{fieldMoreInfo?.(formSchema)}
{validating && changeKey === variable && <ValidatingTip />}
</>}
</div>
)
}

Loading…
Cancel
Save