Skip to content

Commit

Permalink
Remove old defaults from new path attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
APB9785 committed Jan 6, 2024
1 parent 68f88d1 commit 60f3a3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/beacon/live_admin/live/live_data_editor_live/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ defmodule Beacon.LiveAdmin.LiveDataEditorLive.Index do

def handle_event("submit_path", %{"path" => path}, socket) do
%{beacon_page: %{site: site}} = socket.assigns
attrs = %{path: path, assign: "foo", code: "bar", format: :text, site: site}
attrs = %{path: path, site: site}

socket =
case Content.create_live_data(site, attrs) do
Expand Down

0 comments on commit 60f3a3a

Please sign in to comment.