Skip to content

Commit

Permalink
Fix refresh of dynamic templates (#1786)
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Kalderimis <josh.kalderimis@gmail.com>
  • Loading branch information
lawik and joshk authored Jan 21, 2025
1 parent b2ea634 commit a086447
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/nerves_hub_web/dynamic_template_renderer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ defmodule NervesHubWeb.DynamicTemplateRenderer do
quote do
@file unquote(template)
@external_resource unquote(template)
@external_resource unquote(new_template)
def render(var!(assigns)) when is_map(var!(assigns)) do
if Application.get_env(:nerves_hub, :new_ui) && var!(assigns)[:new_ui] do
unquote(new_ast)
Expand Down

0 comments on commit a086447

Please sign in to comment.