Extra toggle should be switchable on empty grids
This commit is contained in:
parent
fd5cc3a395
commit
1a52439150
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue