Fix deletion of the first char in the list
| @@ -10283,7 +10283,7 @@ jQuery(async function () { | |||
| 10283 | $('#form_create').submit(createOrEditCharacter); | 10283 | $('#form_create').submit(createOrEditCharacter); |
| 10284 | 10284 | ||
| 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 | } |