Skip to content

Commit

Permalink
fix improper list
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrocp committed Jan 25, 2024
1 parent d1cc807 commit 5b89975
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/beacon/template/heex/json_encoder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,7 @@ defmodule Beacon.Template.HEEx.JSONEncoder do

template =
Enum.reduce(nodes, [arg], fn node, acc ->
text = [extract_node_text(node) | " \n "]
[text | acc]
[[extract_node_text(node), " \n "] | acc]
end)
|> Enum.reverse()
|> List.to_string()
Expand Down

0 comments on commit 5b89975

Please sign in to comment.