Skip to content

Commit

Permalink
Update page_module_loader.ex (#380)
Browse files Browse the repository at this point in the history
Try to fix error in the main branch resulting from not including the page module in calls to Beacon.Template.render() when loading pages from ETS
  • Loading branch information
kgautreaux authored Dec 4, 2023
1 parent a9feb1a commit be5b137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/beacon/loader/page_module_loader.ex
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ defmodule Beacon.Loader.PageModuleLoader do

with %Content.Page{} = page <- Beacon.Content.get_published_page(page.site, page.id),
{:ok, ^page_module, _ast} <- do_load_page!(page, :request),
%Phoenix.LiveView.Rendered{} = rendered <- Beacon.Template.render(assigns) do
%Phoenix.LiveView.Rendered{} = rendered <- Beacon.Template.render(page_module, assigns) do
rendered
else
_ ->
Expand Down

0 comments on commit be5b137

Please sign in to comment.