Skip to content

Commit

Permalink
Fix object and list inclusion in context
Browse files Browse the repository at this point in the history
  • Loading branch information
Michał committed Jan 9, 2025
1 parent cf96e5a commit bf9f671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/api/lib/buildel/blocks/chat.ex
Original file line number Diff line number Diff line change
Expand Up @@ -868,10 +868,10 @@ defmodule Buildel.Blocks.Chat do
String.replace(acc, "{{#{key}}}", value |> to_string())

{key, value}, acc when is_map(value) ->
Jason.encode!(value)
String.replace(acc, "{{#{key}}}", Jason.encode!(value))

{key, value}, acc when is_list(value) ->
Jason.encode!(value)
String.replace(acc, "{{#{key}}}", Jason.encode!(value))

_, acc ->
acc
Expand Down

0 comments on commit bf9f671

Please sign in to comment.