Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit c2b5e81

Browse files
committed
DEV: Cleanup
1 parent 0ac1aa5 commit c2b5e81

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

assets/javascripts/discourse/lib/ai-bot-helper.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ export async function composeAiBotMessage(
4242
)?.username;
4343
} else if (options.personaUsername) {
4444
botUsername = options.personaUsername;
45-
} else {
46-
botUsername = currentUser.ai_enabled_chat_bots[0].username;
4745
}
4846

4947
const data = {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ export default class AiConversationsSidebarManager extends Service {
2828
// This method is called when leaving your route
2929
// Only restore main panel if we previously forced ours
3030
document.body.classList.remove("has-ai-conversations-sidebar");
31-
const isadminsidebaractive =
31+
const isAdminSidebarActive =
3232
this.sidebarState.currentPanel?.key === ADMIN_PANEL;
3333
// only restore main panel if we previously forced our sidebar
3434
// and not if we are in admin sidebar
35-
if (this.sidebarState.isForcingSidebar && !isadminsidebaractive) {
35+
if (this.sidebarState.isForcingSidebar && !isAdminSidebarActive) {
3636
this.sidebarState.setPanel(MAIN_PANEL); // Return to main sidebar panel
3737
this.sidebarState.isForcingSidebar = false;
3838
}

0 commit comments

Comments
 (0)