mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix deletion of the first char in the list
This commit is contained in:
@ -10283,7 +10283,7 @@ jQuery(async function () {
|
|||||||
$('#form_create').submit(createOrEditCharacter);
|
$('#form_create').submit(createOrEditCharacter);
|
||||||
|
|
||||||
$('#delete_button').on('click', async function () {
|
$('#delete_button').on('click', async function () {
|
||||||
if (!this_chid) {
|
if (this_chid === undefined || !characters[this_chid]) {
|
||||||
toastr.warning('No character selected.');
|
toastr.warning('No character selected.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user