- added url encoding for S3 file urls;

This commit is contained in:
Vitalii Kiiko
2024-12-05 13:08:37 +01:00
parent cf19ea9d12
commit f072c3d6a6
2 changed files with 17 additions and 6 deletions

View File

@@ -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