- added url encoding for S3 file urls;
This commit is contained in:
@@ -36,7 +36,7 @@ const AddCompany = () => {
|
||||
formState: { errors },
|
||||
setValue,
|
||||
watch,
|
||||
getValues
|
||||
trigger
|
||||
} = useForm({
|
||||
defaultValues: {},
|
||||
mode: 'onChange'
|
||||
@@ -131,6 +131,7 @@ const AddCompany = () => {
|
||||
} else {
|
||||
setEmptyValues();
|
||||
}
|
||||
trigger();
|
||||
storeSet.main.unsetAsyncRequest();
|
||||
}
|
||||
|
||||
@@ -207,7 +208,12 @@ const AddCompany = () => {
|
||||
label={__('P.IVA', 'gepafin')}
|
||||
control={control}
|
||||
errors={errors}
|
||||
config={{ required: __('È obbligatorio', 'gepafin') }}
|
||||
config={{
|
||||
required: __('È obbligatorio', 'gepafin'),
|
||||
validate: {
|
||||
isPIVA
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
||||
<FormField
|
||||
|
||||
Reference in New Issue
Block a user