Fix error handling for goals

Fixes #431
pull/442/head
Uku Taht 6 years ago
parent 00d39c5c13
commit d879ef8458

@ -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",

Loading…
Cancel
Save