mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Skip handleDeleteCharacter when character is undefined
This commit is contained in:
@ -7207,7 +7207,8 @@ function doCloseChat() {
|
|||||||
* @param {boolean} delete_chats - Whether to delete chats or not.
|
* @param {boolean} delete_chats - Whether to delete chats or not.
|
||||||
*/
|
*/
|
||||||
export async function handleDeleteCharacter(popup_type, this_chid, delete_chats) {
|
export async function handleDeleteCharacter(popup_type, this_chid, delete_chats) {
|
||||||
if (popup_type !== "del_ch") {
|
if (popup_type !== "del_ch" ||
|
||||||
|
!characters[this_chid]) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user