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

Commit f40e094

Browse files
authored
FIX: persona setting should compare integer value (#1239)
Oversight from recent feature update: #1234 We should be comparing integer value of setting, otherwise we will never see continue conversation button.
1 parent bf5ccb4 commit f40e094

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ export default class AiSearchDiscoveries extends Component {
156156
get canContinueConversation() {
157157
const personas = this.currentUser?.ai_enabled_personas;
158158
const discoverPersona = personas.find(
159-
(persona) => persona.id === this.siteSettings?.ai_bot_discover_persona
159+
(persona) =>
160+
persona.id === parseInt(this.siteSettings?.ai_bot_discover_persona, 10)
160161
);
161162
const discoverPersonaHasBot = discoverPersona?.username;
162163

0 commit comments

Comments
 (0)