Cast the numeric keys of `USER_HOMES` to numbers (#5322)
When converting from hard-coded functions to a map, the key `1` got converted to `"1"`. This broke the drop-down menu.
This commit is contained in:
parent
7f0bf3ff3a
commit
c7d024446e
|
@ -65,7 +65,7 @@ export default Ember.Controller.extend(PreferencesTabController, {
|
||||||
@computed()
|
@computed()
|
||||||
userSelectableHome() {
|
userSelectableHome() {
|
||||||
return _.map(USER_HOMES, (name, num) => {
|
return _.map(USER_HOMES, (name, num) => {
|
||||||
return {name: I18n.t('filters.' + name + '.title'), value: num};
|
return {name: I18n.t('filters.' + name + '.title'), value: Number(num)};
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue