diff --git a/lib/app_web/live/app_live.ex b/lib/app_web/live/app_live.ex index 0a41ceae..9879213f 100644 --- a/lib/app_web/live/app_live.ex +++ b/lib/app_web/live/app_live.ex @@ -210,10 +210,12 @@ defmodule AppWeb.AppLive do changeset_error_key, changeset_error_message ) do - # Adding error to changeset + + # Clearing and adding error to changeset + cleared_changeset = Map.put(changeset_to_error, :errors, []) errored_changeset = Ecto.Changeset.add_error( - changeset_to_error, + cleared_changeset, changeset_error_key, changeset_error_message )