(Hotfix) Don't send extra property to backend explicitly (#387)
This commit is contained in:
parent
57197c99e8
commit
348277de9b
2 changed files with 0 additions and 14 deletions
|
|
@ -164,7 +164,6 @@ const Party = (props: Props) => {
|
|||
if (details.chainCount !== undefined)
|
||||
payload.chain_count = details.chainCount
|
||||
if (details.turnCount !== undefined) payload.turn_count = details.turnCount
|
||||
if (details.extra != undefined) payload.extra = details.extra
|
||||
if (details.job) payload.job_id = details.job.id
|
||||
if (details.guidebook1_id) payload.guidebook1_id = details.guidebook1_id
|
||||
if (details.guidebook2_id) payload.guidebook2_id = details.guidebook2_id
|
||||
|
|
@ -180,17 +179,6 @@ const Party = (props: Props) => {
|
|||
setErrorMessage('')
|
||||
}
|
||||
|
||||
function checkboxChanged(enabled: boolean) {
|
||||
appState.party.extra = enabled
|
||||
|
||||
// Only save if this is a saved party
|
||||
if (props.team && props.team.id) {
|
||||
api.endpoints.parties.update(props.team.id, {
|
||||
party: { extra: enabled },
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
function updateGuidebook(book: Guidebook | undefined, position: number) {
|
||||
let id: string | undefined = ''
|
||||
|
||||
|
|
@ -409,7 +397,6 @@ const Party = (props: Props) => {
|
|||
guidebooks={props.team?.guidebooks}
|
||||
createParty={createParty}
|
||||
pushHistory={props.pushHistory}
|
||||
updateExtra={checkboxChanged}
|
||||
updateGuidebook={updateGuidebook}
|
||||
/>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ interface Props {
|
|||
guidebooks?: GuidebookList
|
||||
createParty: (details: DetailsObject) => Promise<Party>
|
||||
pushHistory?: (path: string) => void
|
||||
updateExtra: (enabled: boolean) => void
|
||||
updateGuidebook: (book: Guidebook | undefined, position: number) => void
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue