fix: Breakage of message pane when Openai integration isn't enabled (#8381)
Error when the Openai integration isn't enabled fixes: https://github.com/chatwoot/chatwoot/issues/8379
This commit is contained in:
committed by
GitHub
parent
d55bb63aa0
commit
17725e4dd0
@@ -18,7 +18,7 @@ export default {
|
|||||||
aiIntegration() {
|
aiIntegration() {
|
||||||
return this.appIntegrations.find(
|
return this.appIntegrations.find(
|
||||||
integration => integration.id === 'openai' && !!integration.hooks.length
|
integration => integration.id === 'openai' && !!integration.hooks.length
|
||||||
).hooks[0];
|
)?.hooks[0];
|
||||||
},
|
},
|
||||||
isAIIntegrationEnabled() {
|
isAIIntegrationEnabled() {
|
||||||
return !!this.aiIntegration;
|
return !!this.aiIntegration;
|
||||||
|
|||||||
Reference in New Issue
Block a user