Skip to content

Commit

Permalink
chore: remove dbg statements
Browse files Browse the repository at this point in the history
  • Loading branch information
MelchiorKokernoot committed Oct 17, 2024
1 parent 7d9ef79 commit c21e3cf
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 15 deletions.
2 changes: 0 additions & 2 deletions core/frameworks/pixel/components/wysiwyg_area_helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ defmodule Frameworks.Pixel.WysiwygAreaHelpers do
params
|> Map.get(input_name)
|> post_process()
|> dbg()

field_name =
String.replace_suffix(input_name, "_input", "")
|> String.to_existing_atom()
|> dbg()

{
:noreply,
Expand Down
2 changes: 0 additions & 2 deletions core/systems/assignment/content_page_form.ex
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ defmodule Systems.Assignment.ContentPageForm do

@impl true
def compose(:content_page_form, %{page_ref: %{page: page}}) do
dbg("Composing content_page_form with page: #{inspect(page)}")

%{
module: Content.PageForm,
params: %{
Expand Down
2 changes: 0 additions & 2 deletions core/systems/consent/revision_form.ex
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ defmodule Systems.Consent.RevisionForm do

@impl true
def handle_wysiwyg_update(%{assigns: %{source: source, entity: entity}} = socket) do
dbg("called handle_body_update with: #{inspect(entity)} and body: #{inspect(source)}")

socket
|> save(entity, %{source: source})
end
Expand Down
9 changes: 0 additions & 9 deletions core/systems/content/page_form.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ defmodule Systems.Content.PageForm do
def update(%{id: id, entity: %{body: body} = entity}, socket) do
form_data = to_form(%{"body" => body})

dbg(form_data)
dbg("my id is: #{inspect(id)}")

{
:ok,
socket
Expand All @@ -24,10 +21,6 @@ defmodule Systems.Content.PageForm do

@impl true
def handle_wysiwyg_update(%{assigns: %{body: body, entity: entity}} = socket) do
dbg("=========HANDLE BODY UPDATE")
dbg("body: #{inspect(body)}")
dbg("=----------------------=")

socket
|> save(entity, %{body: body})
end
Expand All @@ -38,8 +31,6 @@ defmodule Systems.Content.PageForm do
end

def save(socket, entity, attrs) do
dbg("Saving entity: #{inspect(entity)} with attrs #{inspect(attrs)}")

changeset = Content.PageModel.changeset(entity, attrs)

socket
Expand Down

0 comments on commit c21e3cf

Please sign in to comment.