From 4946a6b11970156cf346632da7452406fb113861 Mon Sep 17 00:00:00 2001 From: shibao Date: Sun, 20 Feb 2022 15:01:15 -0500 Subject: [PATCH] fixes template error on modal refreshes --- lib/cannery_web/live/container_live/index.ex | 2 +- lib/cannery_web/live/tag_live/index.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cannery_web/live/container_live/index.ex b/lib/cannery_web/live/container_live/index.ex index fdd4b54..7f71590 100644 --- a/lib/cannery_web/live/container_live/index.ex +++ b/lib/cannery_web/live/container_live/index.ex @@ -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 diff --git a/lib/cannery_web/live/tag_live/index.ex b/lib/cannery_web/live/tag_live/index.ex index 12565d7..fdece48 100644 --- a/lib/cannery_web/live/tag_live/index.ex +++ b/lib/cannery_web/live/tag_live/index.ex @@ -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