fix: use all_custom_fields in prepare_dynamic_cols
Allows users to enable globally hidden custom fields in the table view
This commit is contained in:
parent
ecc6522571
commit
3b038d451d
1 changed files with 2 additions and 1 deletions
|
|
@ -405,8 +405,9 @@ defmodule MvWeb.MemberLive.Index do
|
|||
defp prepare_dynamic_cols(socket) do
|
||||
visible_custom_field_ids = socket.assigns[:visible_custom_field_ids] || []
|
||||
|
||||
# Use all_custom_fields to allow users to enable globally hidden custom fields
|
||||
dynamic_cols =
|
||||
socket.assigns.custom_fields_visible
|
||||
socket.assigns.all_custom_fields
|
||||
|> Enum.filter(fn custom_field -> custom_field.id in visible_custom_field_ids end)
|
||||
|> Enum.map(fn custom_field ->
|
||||
%{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue