mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-22 23:18:27 +01:00
Fix character note for the first character in the list
This commit is contained in:
parent
6ae296d5b5
commit
b29bc4000c
@ -327,7 +327,7 @@ export function setFloatingPrompt() {
|
|||||||
shouldWIAddPrompt = shouldAddPrompt;
|
shouldWIAddPrompt = shouldAddPrompt;
|
||||||
|
|
||||||
let prompt = shouldAddPrompt ? $('#extension_floating_prompt').val() : '';
|
let prompt = shouldAddPrompt ? $('#extension_floating_prompt').val() : '';
|
||||||
if (shouldAddPrompt && extension_settings.note.chara && getContext().characterId) {
|
if (shouldAddPrompt && extension_settings.note.chara && getContext().characterId !== undefined) {
|
||||||
const charaNote = extension_settings.note.chara.find((e) => e.name === getCharaFilename());
|
const charaNote = extension_settings.note.chara.find((e) => e.name === getCharaFilename());
|
||||||
|
|
||||||
// Only replace with the chara note if the user checked the box
|
// Only replace with the chara note if the user checked the box
|
||||||
|
Loading…
x
Reference in New Issue
Block a user