diff --git a/core/systems/assignment/content_page_form.ex b/core/systems/assignment/content_page_form.ex index b75210dd4..870d95d45 100644 --- a/core/systems/assignment/content_page_form.ex +++ b/core/systems/assignment/content_page_form.ex @@ -97,13 +97,14 @@ defmodule Systems.Assignment.ContentPageForm do %{status: :on}, %{assigns: %{assignment: assignment, page_key: page_key}} = socket ) do - page_ref = Assignment.Public.create_page_ref(assignment, page_key) + {:ok, %{assignment_page_ref: page_ref}} = + Assignment.Public.create_page_ref(assignment, page_key) { :noreply, socket |> assign(page_ref: page_ref) - |> update_child(:content_page_form) + |> compose_child(:content_page_form) } end