mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-13 18:40:11 +01:00
Fix deletion of the first char in the list
This commit is contained in:
parent
2df140a6a9
commit
f33464527b
@ -10283,7 +10283,7 @@ jQuery(async function () {
|
||||
$('#form_create').submit(createOrEditCharacter);
|
||||
|
||||
$('#delete_button').on('click', async function () {
|
||||
if (!this_chid) {
|
||||
if (this_chid === undefined || !characters[this_chid]) {
|
||||
toastr.warning('No character selected.');
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user