nox-validation 1.1.8 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/validate.js +0 -4
- package/package.json +1 -1
package/lib/validate.js
CHANGED
|
@@ -725,10 +725,6 @@ const validate = (data) => {
|
|
|
725
725
|
onlyFormFields,
|
|
726
726
|
} = data;
|
|
727
727
|
|
|
728
|
-
fields = JSON.parse(JSON.stringify(fields))
|
|
729
|
-
relations = JSON.parse(JSON.stringify(relations))
|
|
730
|
-
relationalFields = JSON.parse(JSON.stringify(relationalFields))
|
|
731
|
-
|
|
732
728
|
const error_messages = constants.LOCALE_MESSAGES[language] ?? constants.LOCALE_MESSAGES[constants.LANGUAGES.en];
|
|
733
729
|
|
|
734
730
|
let result = { status: true, errors: {}, data: formData };
|