File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
app/frontend/js/components/Edit Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,14 @@ export default {
37
37
},
38
38
methods: {
39
39
setInitialValue () {
40
- if (this .field .display_value ) {
41
- this .value = this .field .value
40
+ if (this .field .enum ) {
41
+ if (this .field .display_value ) {
42
+ this .value = this .field .value
43
+ } else {
44
+ this .value = this .field .enum [this .field .value ]
45
+ }
42
46
} else {
43
- this .value = this .field .enum [ this . field . value ]
47
+ this .value = this .field .value
44
48
}
45
49
},
46
50
optionLabel (label , value ) {
Original file line number Diff line number Diff line change 1
1
Rails . application . routes . draw do
2
- root 'home#index'
2
+ root to : redirect ( '/avo' )
3
3
devise_for :users
4
4
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
5
5
You can’t perform that action at this time.
0 commit comments