Fix issue when clicking "Save and edit" with a new translation
This commit is contained in:
@ -183,6 +183,7 @@ defmodule OutlookWeb.TranslationLive.FormComponent do
|
|||||||
|
|
||||||
defp continue_edit(socket, %{"continue_edit" => "true"}) do
|
defp continue_edit(socket, %{"continue_edit" => "true"}) do
|
||||||
socket
|
socket
|
||||||
|
|> assign(:action, :edit)
|
||||||
end
|
end
|
||||||
defp continue_edit(socket, %{"continue_edit" => "false"}) do
|
defp continue_edit(socket, %{"continue_edit" => "false"}) do
|
||||||
socket |> push_navigate(to: socket.assigns.navigate)
|
socket |> push_navigate(to: socket.assigns.navigate)
|
||||||
|
|||||||
Reference in New Issue
Block a user