fix ammo type displays

This commit is contained in:
2022-02-18 23:25:44 -05:00
parent bf27511caa
commit 91ff0c14e4
10 changed files with 120 additions and 108 deletions

View File

@ -86,7 +86,8 @@ defmodule CanneryWeb.ContainerLive.Show do
@spec render_container(Socket.t(), Container.id(), User.t()) :: Socket.t()
defp render_container(%{assigns: %{live_action: live_action}} = socket, id, current_user) do
%{name: container_name} = container =
%{name: container_name} =
container =
Containers.get_container!(id, current_user)
|> Repo.preload([:ammo_groups, :tags], force: true)