Always run npm run build

This commit is contained in:
Justin Edmund 2023-01-29 23:43:24 -08:00
parent 05df606ea4
commit 1a53e34290

View file

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