From f47334b281405bc6af093f7a2dae5d45bdb90b9d Mon Sep 17 00:00:00 2001 From: Thelonius Kort Date: Thu, 19 Jan 2023 13:54:15 +0100 Subject: [PATCH] Fix issue when clicking "Save and edit" with a new translation --- lib/outlook_web/live/translation_live/form_component.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/outlook_web/live/translation_live/form_component.ex b/lib/outlook_web/live/translation_live/form_component.ex index 4c57590..b58de1b 100644 --- a/lib/outlook_web/live/translation_live/form_component.ex +++ b/lib/outlook_web/live/translation_live/form_component.ex @@ -183,6 +183,7 @@ defmodule OutlookWeb.TranslationLive.FormComponent do defp continue_edit(socket, %{"continue_edit" => "true"}) do socket + |> assign(:action, :edit) end defp continue_edit(socket, %{"continue_edit" => "false"}) do socket |> push_navigate(to: socket.assigns.navigate)