Skip to content

Build your personal knowledge base with Trilium Notes

fix the isEnabled function

perf3ct1844ad7b49bb
diff --git a/src/public/app/services/app_service.js b/src/public/app/services/app_service.js
index b1325c23c9..12e00de0e7 100644
--- a/src/public/app/services/app_service.js
+++ b/src/public/app/services/app_service.js
@@ -13,7 +13,7 @@ function initComponents() {
}
function addChatTab() {
- if (!options.getOptionBool('llmEnabled')) {
+ if (!options.getOptionBool('aiEnabled')) {
return;
}
diff --git a/src/public/app/widgets/llm/chat_widget.js b/src/public/app/widgets/llm/chat_widget.js
index 48cea43769..4755d86814 100644
--- a/src/public/app/widgets/llm/chat_widget.js
+++ b/src/public/app/widgets/llm/chat_widget.js
@@ -61,7 +61,7 @@ export default class ChatWidget extends TabAwareWidget {
}
isEnabled() {
- return options.getOptionBool('llmEnabled');
+ return options.getOptionBool('aiEnabled');
}
doRender() {