mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix alternate greetings not opening on create character without char pre-loaded
This commit is contained in:
@ -4848,7 +4848,7 @@ function openAlternateGreetings() {
|
||||
return;
|
||||
} else {
|
||||
// If the character does not have alternate greetings, create an empty array
|
||||
if (Array.isArray(characters[chid].data.alternate_greetings) == false) {
|
||||
if (chid && Array.isArray(characters[chid].data.alternate_greetings) == false) {
|
||||
characters[chid].data.alternate_greetings = [];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user