orderiom-api-package 0.4.37 → 0.4.38
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/package.json +1 -1
- package/src/modules/order.js +4 -4
package/package.json
CHANGED
package/src/modules/order.js
CHANGED
|
@@ -645,8 +645,8 @@ const actions = {
|
|
|
645
645
|
if (status === 422) {
|
|
646
646
|
const validation = error.response.data.error.validation;
|
|
647
647
|
|
|
648
|
-
const name = validation.name;
|
|
649
|
-
const validTime = validation.validTime;
|
|
648
|
+
const name = validation.name[0];
|
|
649
|
+
const validTime = validation.validTime[0];
|
|
650
650
|
delete validation.name;
|
|
651
651
|
delete validation.validTime;
|
|
652
652
|
|
|
@@ -880,8 +880,8 @@ const actions = {
|
|
|
880
880
|
|
|
881
881
|
const name = validation.name;
|
|
882
882
|
const validTime = validation.validTime;
|
|
883
|
-
delete validation.name;
|
|
884
|
-
delete validation.validTime;
|
|
883
|
+
delete validation.name[0];
|
|
884
|
+
delete validation.validTime[0];
|
|
885
885
|
|
|
886
886
|
return {
|
|
887
887
|
type: 'error',
|