Compare commits
1 Commits
cfbec3189c
...
6083fbca4f
Author | SHA1 | Date | |
---|---|---|---|
6083fbca4f |
@ -87,7 +87,7 @@ defmodule CanneryWeb.AmmoGroupLive.Show do
|
||||
%{label: gettext("Rounds shot"), key: :count},
|
||||
%{label: gettext("Notes"), key: :notes},
|
||||
%{label: gettext("Date"), key: :date},
|
||||
%{label: nil, key: :actions, sortable: false}
|
||||
%{label: nil, key: "actions", sortable: false}
|
||||
]
|
||||
|
||||
rows =
|
||||
|
@ -79,7 +79,7 @@ defmodule CanneryWeb.AmmoTypeLive.Index do
|
||||
|
||||
ammo_types
|
||||
|> Enum.any?(fn ammo_type ->
|
||||
not (ammo_type |> Map.get(key) == default_value)
|
||||
not (ammo_type |> Map.get(key |> String.to_existing_atom()) == default_value)
|
||||
end)
|
||||
end)
|
||||
|> Kernel.++([
|
||||
|
@ -81,7 +81,7 @@ defmodule CanneryWeb.RangeLive.Index do
|
||||
%{label: gettext("Rounds shot"), key: :count},
|
||||
%{label: gettext("Notes"), key: :notes},
|
||||
%{label: gettext("Date"), key: :date},
|
||||
%{label: nil, key: :actions, sortable: false}
|
||||
%{label: nil, key: "actions", sortable: false}
|
||||
]
|
||||
|
||||
rows =
|
||||
|
Loading…
Reference in New Issue
Block a user