FIX: Disabled chat breaks `ai-chat-summarization` (#697)
This commit is contained in:
parent
1b0ba9197c
commit
ef4b3559cd
|
@ -11,7 +11,11 @@ export default apiInitializer("1.34.0", (api) => {
|
|||
currentUser &&
|
||||
currentUser.can_summarize;
|
||||
|
||||
if (!chatService.userCanChat || !siteSettings.chat_enabled || !canSummarize) {
|
||||
if (
|
||||
!siteSettings.chat_enabled ||
|
||||
!chatService?.userCanChat ||
|
||||
!canSummarize
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue