A platform for community discussion. Free, open, simple.
FIX: prevent popup when thread count request fails (#25308)
David Battersby6fa836d781e4
diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-footer.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-footer.gjsindex fd7726bb899..519e3509740 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-footer.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat-footer.gjs@@ -4,7 +4,6 @@ import { inject as service } from "@ember/service";import { modifier } from "ember-modifier";import DButton from "discourse/components/d-button";import concatClass from "discourse/helpers/concat-class";-import { popupAjaxError } from "discourse/lib/ajax-error";import i18n from "discourse-common/helpers/i18n";import eq from "truth-helpers/helpers/eq";@@ -23,7 +22,8 @@ export default class ChatFooter extends Component {this.threadsEnabled = result.thread_count > 0;}).catch((error) => {- popupAjaxError(error);+ // eslint-disable-next-line no-console+ console.error(error);});return () => {