mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 00:39:49 +00:00
Fix PR feedback
This commit is contained in:
parent
bc0edd96d2
commit
9be5655d00
@ -122,7 +122,7 @@
|
||||
"components.Input.error.attribute.sameKeyAndName": "Can't be equal",
|
||||
"components.Input.error.validation.minSupMax": "Can't be superior",
|
||||
"components.Input.error.custom-error": "{errorMessage} ",
|
||||
"components.Input.error.validation.json": "This is not a JSON",
|
||||
"components.Input.error.validation.json": "This doesn't match the JSON format",
|
||||
|
||||
"components.ListRow.empty": "There is no data to be shown.",
|
||||
|
||||
|
@ -50,8 +50,6 @@ export function checkFormValidity(formData, formValidations) {
|
||||
}
|
||||
|
||||
function validate(value, validations) {
|
||||
// console.log('v', value);
|
||||
// console.log('vza', validations);
|
||||
let errors = [];
|
||||
// Handle i18n
|
||||
const requiredError = { id: 'content-manager.error.validation.required' };
|
||||
@ -93,7 +91,7 @@ function validate(value, validations) {
|
||||
if (isObject(value)) {
|
||||
value = JSON.parse(JSON.stringify(value));
|
||||
} else {
|
||||
errors.push({ id: 'content-manager.error.validation.json' });
|
||||
errors.push({ id: 'content-manager.error.validation.json' });
|
||||
}
|
||||
} catch(err) {
|
||||
errors.push({ id: 'content-manager.error.validation.json' });
|
||||
|
Loading…
x
Reference in New Issue
Block a user