From 40c903ec2399ccc3b4caf91d9fdebd99722e746e Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 22 May 2019 15:17:28 +0200 Subject: [PATCH] FIX: ie11 exception on new category popup (#7585) --- .../discourse/components/edit-category-settings.js.es6 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; },