Skip to content

Commit ef260be

Browse files
authored
DEV: Move the stop-forcing-conversations-sidebar appEvents trigger (#1353)
1 parent 0c69bb8 commit ef260be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

assets/javascripts/discourse/services/ai-conversations-sidebar-manager.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ export default class AiConversationsSidebarManager extends Service {
4242
if (this.sidebarState.isForcingSidebar && !isAdminSidebarActive) {
4343
this.sidebarState.setPanel(MAIN_PANEL); // Return to main sidebar panel
4444
this.sidebarState.isForcingSidebar = false;
45+
this.appEvents.trigger("discourse-ai:stop-forcing-conversations-sidebar");
4546
}
46-
47-
this.appEvents.trigger("discourse-ai:stop-forcing-conversations-sidebar");
4847
}
4948
}

0 commit comments

Comments
 (0)