Fix deletion of the first char in the list

f33464527b07538591f2ac3fa8f8ff807ca569b5

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/script.js+1 -1
@@ -10283,7 +10283,7 @@ jQuery(async function () {
10283 $('#form_create').submit(createOrEditCharacter);10283 $('#form_create').submit(createOrEditCharacter);
1028410284
10285 $('#delete_button').on('click', async function () {10285 $('#delete_button').on('click', async function () {
10286 if (!this_chid) {10286 if (this_chid === undefined || !characters[this_chid]) {
10287 toastr.warning('No character selected.');10287 toastr.warning('No character selected.');
10288 return;10288 return;
10289 }10289 }