FIX: return false if no current user personas (#1241)
This commit is contained in:
parent
7b56d7d4fc
commit
a14fe929a9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue