@afeefa/vue-app 0.0.77 → 0.0.78

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- 0.0.77
1
+ 0.0.78
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.77",
3
+ "version": "0.0.78",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -69,7 +69,18 @@ export class FormFieldMixin extends Vue {
69
69
  }
70
70
 
71
71
  if (field.hasOptions()) {
72
- const options = field.getOptions()
72
+ let options = field.getOptions()
73
+
74
+ if (!Array.isArray(options)) {
75
+ options = Object.entries(options).map(([key, title]) => {
76
+ return {
77
+ itemText: title,
78
+ itemValue: key
79
+ }
80
+ })
81
+ return options
82
+ }
83
+
73
84
  return options.map((value, index) => {
74
85
  if (typeof value === 'object') { // object option
75
86
  return {