Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit a14fe92

Browse files
authored
FIX: return false if no current user personas (#1241)
1 parent 7b56d7d commit a14fe92

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

assets/javascripts/discourse/components/ai-search-discoveries.gjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ export default class AiSearchDiscoveries extends Component {
155155

156156
get canContinueConversation() {
157157
const personas = this.currentUser?.ai_enabled_personas;
158+
if (!personas) {
159+
return false;
160+
}
158161
const discoverPersona = personas.find(
159162
(persona) =>
160163
persona.id === parseInt(this.siteSettings?.ai_bot_discover_persona, 10)

0 commit comments

Comments
 (0)