mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
fix(portal): Fix Enum.find_value to extract actor name in confirmation dialog (#5430)
Fixes #4884 Fixes #5425
This commit is contained in:
@@ -205,13 +205,9 @@ defmodule Web.Groups.EditActors do
|
||||
end
|
||||
|
||||
defp actor_name(socket, id) do
|
||||
Enum.find_value(
|
||||
socket.assigns.actors,
|
||||
fn actor ->
|
||||
actor.id == id
|
||||
end,
|
||||
& &1.name
|
||||
)
|
||||
Enum.find_value(socket.assigns.actors, fn actor ->
|
||||
if actor.id == id, do: actor.name
|
||||
end)
|
||||
end
|
||||
|
||||
defp member?(current_member_ids, actor, added, removed) do
|
||||
|
||||
Reference in New Issue
Block a user