From b9838d606633453b9fb27c90ee98d8a48bb1b8dd Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Fri, 22 Nov 2024 11:24:02 +0100 Subject: [PATCH] DEV: Fix theme name in `this` deprecation notices (#29888) A followup to 019ba099c84f2e2e4fa0053588707acd2e728376 --- .../initializers/deprecation-this-property-fallback-handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/initializers/deprecation-this-property-fallback-handler.js b/app/assets/javascripts/discourse/app/initializers/deprecation-this-property-fallback-handler.js index a431af71966..24f2bc6dfc4 100644 --- a/app/assets/javascripts/discourse/app/initializers/deprecation-this-property-fallback-handler.js +++ b/app/assets/javascripts/discourse/app/initializers/deprecation-this-property-fallback-handler.js @@ -23,7 +23,7 @@ export default { if (pluginMatch || themeIdMatch) { const source = { type: pluginMatch ? "plugin" : "theme", - name: pluginMatch || getThemeInfo(parseInt(themeIdMatch, 10)), + name: pluginMatch || getThemeInfo(parseInt(themeIdMatch, 10)).name, id: themeIdMatch, }; options.source = source;