Extra toggle should be switchable on empty grids

This commit is contained in:
Justin Edmund 2022-02-23 14:28:48 -08:00
parent fd5cc3a395
commit 1a52439150

View file

@ -47,8 +47,9 @@ const Party = (props: Props) => {
// Methods: Updating the party's extra flag
function checkboxChanged(event: React.ChangeEvent<HTMLInputElement>) {
state.party.extra = event.target.checked
if (party.id) {
state.party.extra = event.target.checked
api.endpoints.parties.update(party.id, {
'party': { 'is_extra': event.target.checked }
}, headers)