diff --git a/app/assets/javascripts/discourse/components/edit-category-settings.js.es6 b/app/assets/javascripts/discourse/components/edit-category-settings.js.es6 index f24095d76d5..c32f8b0553d 100644 --- a/app/assets/javascripts/discourse/components/edit-category-settings.js.es6 +++ b/app/assets/javascripts/discourse/components/edit-category-settings.js.es6 @@ -67,12 +67,14 @@ export default buildCategoryPanel("settings", { searchPrioritiesOptions() { const options = []; - for (const [name, value] of Object.entries(searchPriorities)) { + Object.entries(searchPriorities).forEach(entry => { + const [name, value] = entry; + options.push({ name: I18n.t(`category.search_priority.options.${name}`), - value: value + value }); - } + }); return options; },