FIX: ensures we have a proper component name (#8876)

This commit is contained in:
Joffrey JAFFEUX 2020-02-06 11:30:38 +01:00 committed by GitHub
parent c5e3faac00
commit f25e787ae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,7 +124,7 @@ export default Component.extend({
@discourseComputed("currentMode")
modeComponent(currentMode) {
return `admin-report-${currentMode}`;
return `admin-report-${currentMode.replace(/_/g, "-")}`;
},
@discourseComputed("startDate")