From 0e8d36d080d8a136b7d92a1f0022eca59924a560 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 6 Mar 2025 16:46:06 +0000 Subject: [PATCH] DEV: Fixup theme detection for template-override deprecation (#31672) --- .../app/instance-initializers/component-templates.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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", + }; } }