fixes template error on modal refreshes

This commit is contained in:
shibao 2022-02-20 15:01:15 -05:00
parent 9f784c3190
commit 4946a6b119
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ defmodule CanneryWeb.ContainerLive.Index do
@impl true
def handle_params(params, _url, %{assigns: %{live_action: live_action}} = socket) do
{:noreply, apply_action(socket, live_action, params)}
{:noreply, apply_action(socket, live_action, params) |> display_containers()}
end
defp apply_action(%{assigns: %{current_user: current_user}} = socket, :edit, %{"id" => id}) do

View File

@ -15,7 +15,7 @@ defmodule CanneryWeb.TagLive.Index do
@impl true
def handle_params(params, _url, %{assigns: %{live_action: live_action}} = socket) do
{:noreply, apply_action(socket, live_action, params)}
{:noreply, apply_action(socket, live_action, params) |> display_tags}
end
defp apply_action(%{assigns: %{current_user: current_user}} = socket, :edit, %{"id" => id}) do