Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fixup theme detection for template-override deprecation (#31672)

David Taylor0e8d36d080d8
diff --git a/app/assets/javascripts/discourse/app/instance-initializers/component-templates.js b/app/assets/javascripts/discourse/app/instance-initializers/component-templates.js
index 04a6e800c71..519cf5d7d31 100644
--- a/app/assets/javascripts/discourse/app/instance-initializers/component-templates.js
+++ b/app/assets/javascripts/discourse/app/instance-initializers/component-templates.js
@@ -22,7 +22,10 @@ function sourceForModuleName(name) {
const themeMatch = name.match(/^discourse\/theme-(\d+)\//)?.[1];
if (themeMatch) {
- return getThemeInfo(parseInt(themeMatch, 10));
+ return {
+ ...getThemeInfo(parseInt(themeMatch, 10)),
+ type: "theme",
+ };
}
}