Fix error handling for goals

Fixes #431
This commit is contained in:
Uku Taht 2020-11-27 09:54:29 +02:00
parent 00d39c5c13
commit d879ef8458

View File

@ -75,7 +75,7 @@ defmodule PlausibleWeb.SiteController do
|> put_flash(:success, "Goal created succesfully")
|> redirect(to: "/#{URI.encode_www_form(site.domain)}/settings/goals")
{:error, :goal, changeset, _} ->
{:error, changeset} ->
conn
|> assign(:skip_plausible_tracking, true)
|> render("new_goal.html",