Update hotswap state on fav

This commit is contained in:
Cohee 2023-09-13 13:12:19 +03:00
parent e74090139c
commit bf0cf10403
1 changed files with 1 additions and 0 deletions

View File

@ -6357,6 +6357,7 @@ async function createOrEditCharacter(e) {
$("#create_button").removeAttr("disabled"); $("#create_button").removeAttr("disabled");
await getOneCharacter(formData.get('avatar_url')); await getOneCharacter(formData.get('avatar_url'));
favsToHotswap(); // Update fav state
$("#add_avatar_button").replaceWith( $("#add_avatar_button").replaceWith(
$("#add_avatar_button").val("").clone(true) $("#add_avatar_button").val("").clone(true)