From 0b7bb421666b5b6ea343a7901b012a312cf7141b Mon Sep 17 00:00:00 2001 From: Cohee Date: Tue, 6 Jun 2023 02:14:10 +0300 Subject: [PATCH] Fix alternate greetings not opening on create character without char pre-loaded --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 5d0f786d1..ebf095771 100644 --- a/public/script.js +++ b/public/script.js @@ -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 = []; } }