syntax error

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

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

Loading…
Cancel
Save