From 29805c31b80840a6828b7bf063928fca81d896a7 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 3 Aug 2023 16:10:44 +0100 Subject: [PATCH] DEV: Fix theme error message (#22956) (#22958) Since the refactoring in f822a933fa295c80a8b0408cf0f6c459918dfa08, the text of theme-related errors has been missing in the UI. --- .../discourse/app/instance-initializers/theme-errors-handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/instance-initializers/theme-errors-handler.js b/app/assets/javascripts/discourse/app/instance-initializers/theme-errors-handler.js index bf8cfc94696..9ca286b26da 100644 --- a/app/assets/javascripts/discourse/app/instance-initializers/theme-errors-handler.js +++ b/app/assets/javascripts/discourse/app/instance-initializers/theme-errors-handler.js @@ -52,7 +52,7 @@ export default { reportToLogster(source.name, error); const message = I18n.t("themes.broken_theme_alert"); - this.displayErrorNotice(this.currentUser, message, source); + this.displayErrorNotice(message, source); }, reportGenericError(e) {