mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Accept both v1 and v2 spec for editcharacterattributes endpoint
This commit is contained in:
@ -81,7 +81,7 @@ class CharacterContextMenu {
|
||||
body: JSON.stringify(data),
|
||||
}).then((response) => {
|
||||
if (response.ok) toggleFavoriteHighlight(characterId)
|
||||
else toastr.error('Character not saved. Error: ' + response.json()?.message)
|
||||
else response.json().then(json => toastr.error('Character not saved. Error: ' + json.message + '. Field: ' + json.error));
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user