From a68a16bf068d2357d0167b73c5554778e62dedd8 Mon Sep 17 00:00:00 2001 From: shibao Date: Wed, 29 Mar 2023 23:03:03 -0400 Subject: [PATCH] fix ammo type table not displaying class --- lib/cannery_web/components/ammo_type_table_component.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cannery_web/components/ammo_type_table_component.ex b/lib/cannery_web/components/ammo_type_table_component.ex index e2f1289..640229a 100644 --- a/lib/cannery_web/components/ammo_type_table_component.ex +++ b/lib/cannery_web/components/ammo_type_table_component.ex @@ -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})