FIX: typo when excluding personas from enabled bot list (#671)
This commit is contained in:
parent
0d6d9a6ef5
commit
c4d9fab8e7
|
@ -14,9 +14,9 @@ function isBotMessage(composer, currentUser) {
|
||||||
) {
|
) {
|
||||||
const reciepients = composer.targetRecipients.split(",");
|
const reciepients = composer.targetRecipients.split(",");
|
||||||
|
|
||||||
return currentUser.ai_enabled_chat_bots.any((bot) =>
|
return currentUser.ai_enabled_chat_bots
|
||||||
reciepients.any((username) => username === bot.username)
|
.filter((bot) => !bot.is_persona)
|
||||||
);
|
.any((bot) => reciepients.any((username) => username === bot.username));
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -110,7 +110,7 @@ export default class BotSelector extends Component {
|
||||||
|
|
||||||
get llmOptions() {
|
get llmOptions() {
|
||||||
const availableBots = this.currentUser.ai_enabled_chat_bots
|
const availableBots = this.currentUser.ai_enabled_chat_bots
|
||||||
.filter((bot) => !bot.is_persosna)
|
.filter((bot) => !bot.is_persona)
|
||||||
.filter(Boolean);
|
.filter(Boolean);
|
||||||
|
|
||||||
return availableBots.map((bot) => {
|
return availableBots.map((bot) => {
|
||||||
|
|
Loading…
Reference in New Issue