fix ammo type table not displaying class

This commit is contained in:
shibao 2023-03-29 23:03:03 -04:00
parent 4b6d0952f8
commit a68a16bf06

View File

@ -147,7 +147,7 @@ defmodule CanneryWeb.Components.AmmoTypeTableComponent do
})
|> TableComponent.maybe_compose_columns(filtered_columns)
|> TableComponent.maybe_compose_columns(
%{label: gettext("Class"), key: :type, type: :atom},
%{label: gettext("Class"), key: :class, type: :atom},
class in [:all, nil]
)
|> TableComponent.maybe_compose_columns(%{label: gettext("Name"), key: :name, type: :name})