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:
Michael Howell 2017-11-16 17:01:18 -07:00 committed by Sam
parent 7f0bf3ff3a
commit c7d024446e
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ export default Ember.Controller.extend(PreferencesTabController, {
@computed()
userSelectableHome() {
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)};
});
},