Skip to content

Commit

Permalink
handle for agent show the case they are string
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Jul 28, 2023
1 parent 35edfc3 commit 65e3629
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/views/agents/_agent_show.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
= render TurboFrameComponent.new(id: agent_frame_id(agent, parent_id)) do
%div.d-flex
- return agent if agent.is_a? String
- if agent.id
= hidden_field_tag agent_field_name(:id, name_prefix), agent.id

Expand Down

0 comments on commit 65e3629

Please sign in to comment.