From 8352dc693a48e8dde8f846699200940fa64f1686 Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Tue, 5 Sep 2023 10:57:46 +0200 Subject: [PATCH] Remove unnecessary goals query This should be done only once in the live view --- lib/plausible_web/controllers/site_controller.ex | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/plausible_web/controllers/site_controller.ex b/lib/plausible_web/controllers/site_controller.ex index f9aaa993f..4d2ccc9fd 100644 --- a/lib/plausible_web/controllers/site_controller.ex +++ b/lib/plausible_web/controllers/site_controller.ex @@ -216,13 +216,11 @@ defmodule PlausibleWeb.SiteController do def settings_goals(conn, _params) do site = conn.assigns[:site] |> Repo.preload(:custom_domain) - goals = Goals.for_site(site, preload_funnels?: true) conn |> assign(:skip_plausible_tracking, true) |> render("settings_goals.html", site: site, - goals: goals, connect_live_socket: true, layout: {PlausibleWeb.LayoutView, "site_settings.html"} )