FIX: persona setting should compare integer value (#1239)
Oversight from recent feature update: https://github.com/discourse/discourse-ai/pull/1234 We should be comparing integer value of setting, otherwise we will never see continue conversation button.
This commit is contained in:
parent
bf5ccb452c
commit
f40e094945
|
@ -156,7 +156,8 @@ export default class AiSearchDiscoveries extends Component {
|
|||
get canContinueConversation() {
|
||||
const personas = this.currentUser?.ai_enabled_personas;
|
||||
const discoverPersona = personas.find(
|
||||
(persona) => persona.id === this.siteSettings?.ai_bot_discover_persona
|
||||
(persona) =>
|
||||
persona.id === parseInt(this.siteSettings?.ai_bot_discover_persona, 10)
|
||||
);
|
||||
const discoverPersonaHasBot = discoverPersona?.username;
|
||||
|
||||
|
|
Loading…
Reference in New Issue