mirror of
https://github.com/discourse/discourse.git
synced 2025-04-26 01:54:27 +08:00
DEV: Fixup theme detection for template-override deprecation (#31672)
This commit is contained in:
parent
fb76696f45
commit
0e8d36d080
@ -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",
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user