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

This commit is contained in:
David Taylor 2025-03-06 16:46:06 +00:00 committed by GitHub
parent fb76696f45
commit 0e8d36d080
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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",
};
}
}