We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57ffd9d commit 6b7e494Copy full SHA for 6b7e494
app/frontend/js/components/Edit/SelectField.vue
@@ -37,10 +37,14 @@ export default {
37
},
38
methods: {
39
setInitialValue() {
40
- if (this.field.display_value) {
41
- this.value = this.field.value
+ if (this.field.enum) {
+ if (this.field.display_value) {
42
+ this.value = this.field.value
43
+ } else {
44
+ this.value = this.field.enum[this.field.value]
45
+ }
46
} else {
- this.value = this.field.enum[this.field.value]
47
48
}
49
50
optionLabel(label, value) {
spec/dummy/config/routes.rb
@@ -1,5 +1,5 @@
1
Rails.application.routes.draw do
2
- root 'home#index'
+ root to: redirect('/avo')
3
devise_for :users
4
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
5
0 commit comments