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

Commit c9df623

Browse files
committed
FIX: Ensure custom sidebar does not leak when setting disabled
1 parent 89a085b commit c9df623

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

assets/javascripts/initializers/ai-conversations-sidebar.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ export default {
1313

1414
initialize() {
1515
withPluginApi((api) => {
16+
const siteSettings = api.container.lookup("service:site-settings");
17+
if (!siteSettings.ai_enable_experimental_bot_ux) {
18+
return;
19+
}
20+
1621
const currentUser = api.container.lookup("service:current-user");
1722
if (!currentUser) {
1823
return;

0 commit comments

Comments
 (0)