Merge pull request #203 from jedmund/fix-weapon-conflicts

Always run npm run build
This commit is contained in:
Justin Edmund 2023-01-29 23:44:19 -08:00 committed by GitHub
commit cf91c3f4ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,13 +95,15 @@ const WeaponGrid = (props: Props) => {
const payload: DetailsObject = { extra: party.extra } const payload: DetailsObject = { extra: party.extra }
props.createParty(payload).then((team) => { props.createParty(payload).then((team) => {
saveWeapon(team.id, weapon, position).then((response) => { saveWeapon(team.id, weapon, position).then((response) => {
storeGridWeapon(response.data.grid_weapon) if (response) storeGridWeapon(response.data.grid_weapon)
}) })
}) })
} else { } else {
if (party.editable) if (party.editable)
saveWeapon(party.id, weapon, position) saveWeapon(party.id, weapon, position)
.then((response) => handleWeaponResponse(response.data)) .then((response) => {
if (response) handleWeaponResponse(response.data)
})
.catch((error) => { .catch((error) => {
const axiosError = error as AxiosError const axiosError = error as AxiosError
const response = axiosError.response const response = axiosError.response