mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
fix(portal): Preload provider on pubsub events for the policy (#6444)
This commit is contained in:
@@ -260,7 +260,7 @@ defmodule Web.Policies.Show do
|
||||
def handle_info({_action, _policy_id}, socket) do
|
||||
{:ok, policy} =
|
||||
Policies.fetch_policy_by_id(socket.assigns.policy.id, socket.assigns.subject,
|
||||
preload: [:actor_group, :resource, created_by_identity: :actor]
|
||||
preload: [actor_group: [:provider], resource: [], created_by_identity: :actor]
|
||||
)
|
||||
|
||||
{:noreply, assign(socket, policy: policy)}
|
||||
|
||||
Reference in New Issue
Block a user