mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix character note for the first character in the list
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user