From 9d3800adecca199a37242d0e688808b82baefa30 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 23 Jan 2024 10:16:47 +0000 Subject: [PATCH] DEV: Implement text() for SidebarChatMyThreadsSection (#25371) In normal use, this `text()` getter is never called. However, when running with the Ember inspector, it is eagerly evaluated and hits throws the "not implemented" error in the base class. --- .../assets/javascripts/discourse/initializers/chat-sidebar.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/chat/assets/javascripts/discourse/initializers/chat-sidebar.js b/plugins/chat/assets/javascripts/discourse/initializers/chat-sidebar.js index 9e997b83ecd..990c2ea0dc7 100644 --- a/plugins/chat/assets/javascripts/discourse/initializers/chat-sidebar.js +++ b/plugins/chat/assets/javascripts/discourse/initializers/chat-sidebar.js @@ -88,6 +88,10 @@ export default { get links() { return [new SidebarChatMyThreadsSectionLink()]; } + + get text() { + return null; + } }; return SidebarChatMyThreadsSection;