refactor: address review comments for join request settings
This commit is contained in:
parent
05e2a298fe
commit
21812542ad
6 changed files with 29 additions and 15 deletions
|
|
@ -54,7 +54,7 @@ defmodule Mv.Membership.Setting.Changes.NormalizeJoinFormSettings do
|
|||
base = if is_map(required_config), do: required_config, else: %{}
|
||||
|
||||
base
|
||||
|> Map.filter(fn {key, _} -> key in field_ids end)
|
||||
|> Map.take(field_ids)
|
||||
|> Map.put("email", true)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue