nox-validation 1.2.6 → 1.2.7
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 +1 -1
- package/package.json +1 -1
package/lib/validate.js
CHANGED
|
@@ -819,7 +819,7 @@ const validate = (data) => {
|
|
|
819
819
|
const error_messages =
|
|
820
820
|
constants.LOCALE_MESSAGES[language] ?? constants.LOCALE_MESSAGES[constants.LANGUAGES.en];
|
|
821
821
|
|
|
822
|
-
let result = { status: true, errors: {}, data: formData };
|
|
822
|
+
let result = { status: true, errors: {}, data: structuredClone(formData) };
|
|
823
823
|
|
|
824
824
|
const updateValue = (key, value) => {
|
|
825
825
|
setValue(result.data, key, value);
|