Fix bug introduced in last PR

This commit is contained in:
Justin Edmund 2022-12-30 06:09:58 -08:00
parent d0f8b3a5e2
commit 7049e8e723

View file

@ -41,8 +41,10 @@ module Api
end
# Render the grid weapon view as a string and assign it to a variable
return unless weapon.save!
grid_weapon_view = render_grid_weapon_view(weapon, conflict_position)
render json: grid_weapon_view, status: :created if weapon.save!
render json: grid_weapon_view, status: :created
end
def resolve