FIX: return false if no current user personas (#1241)

This commit is contained in:
Keegan George 2025-04-01 13:47:39 -07:00 committed by GitHub
parent 7b56d7d4fc
commit a14fe929a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -155,6 +155,9 @@ export default class AiSearchDiscoveries extends Component {
get canContinueConversation() {
const personas = this.currentUser?.ai_enabled_personas;
if (!personas) {
return false;
}
const discoverPersona = personas.find(
(persona) =>
persona.id === parseInt(this.siteSettings?.ai_bot_discover_persona, 10)