Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrocp committed Nov 10, 2023
1 parent 6f1a4ee commit 61f519c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/beacon/live_admin/live/page_editor_live/event_handlers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ defmodule Beacon.LiveAdmin.PageEditorLive.EventHandlers do

# For the first page load
def handle_params(params, _url, socket) do
page = Content.get_page(socket.assigns.beacon_page.site, params["page_id"], preloads: [:event_handlers])
page =
Content.get_page(socket.assigns.beacon_page.site, params["page_id"],
preloads: [:event_handlers]
)

socket =
socket
Expand Down Expand Up @@ -46,7 +49,7 @@ defmodule Beacon.LiveAdmin.PageEditorLive.EventHandlers do
%{selected: selected, beacon_page: %{site: site}, form: form} = socket.assigns

params = Map.merge(form.params, %{"code" => code})
changeset = Content.change_page_event_handler(site, selected, params)
changeset = Content.change_page_event_handler(site, selected, params)

socket =
socket
Expand Down

0 comments on commit 61f519c

Please sign in to comment.