@finema/core 1.4.117 → 1.4.118
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/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
import FieldWrapper from '#core/components/Form/FieldWrapper.vue'
|
|
41
41
|
import { useFieldHOC } from '#core/composables/useForm'
|
|
42
42
|
import type { ISelectMultipleFieldProps } from '#core/components/Form/InputSelectMultiple/types'
|
|
43
|
+
import { ArrayHelper } from '#core/utils/ArrayHelper'
|
|
43
44
|
|
|
44
45
|
const props = withDefaults(defineProps<ISelectMultipleFieldProps>(), {})
|
|
45
46
|
|
|
@@ -66,7 +66,14 @@ export class ObjectHelper {
|
|
|
66
66
|
if (process.env.NODE_ENV !== "production") {
|
|
67
67
|
console.error("API ERROR", error);
|
|
68
68
|
}
|
|
69
|
-
let newError =
|
|
69
|
+
let newError = {
|
|
70
|
+
code: "SOMETHING_WENT_WRONG",
|
|
71
|
+
message: "Something went wrong"
|
|
72
|
+
};
|
|
73
|
+
try {
|
|
74
|
+
newError = JSON.parse(error.response?.request?.response || "{}");
|
|
75
|
+
} catch (e) {
|
|
76
|
+
}
|
|
70
77
|
if (!error.response?.status) {
|
|
71
78
|
newError = {
|
|
72
79
|
code: "NETWORK_ERROR",
|