From f25e787ae2ae3e4c20018cc31b7505f38ad13988 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 6 Feb 2020 11:30:38 +0100 Subject: [PATCH] FIX: ensures we have a proper component name (#8876) --- app/assets/javascripts/admin/components/admin-report.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/admin/components/admin-report.js.es6 b/app/assets/javascripts/admin/components/admin-report.js.es6 index b7a27a93250..a385b71730a 100644 --- a/app/assets/javascripts/admin/components/admin-report.js.es6 +++ b/app/assets/javascripts/admin/components/admin-report.js.es6 @@ -124,7 +124,7 @@ export default Component.extend({ @discourseComputed("currentMode") modeComponent(currentMode) { - return `admin-report-${currentMode}`; + return `admin-report-${currentMode.replace(/_/g, "-")}`; }, @discourseComputed("startDate")