Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-yin committed Jan 17, 2024
1 parent ea2a6ca commit e816989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/turbo_helper/turbo_power.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ def graft(targets=None, parent=None, **attributes):

@register_turbo_stream_action("morph")
def morph(targets=None, html=None, **attributes):
html = html or attributes["content"]
html = html or attributes.pop("content", None)
return custom_action_all(
"morph",
targets=targets,
content=mark_safe(html),
content=mark_safe(html) if html else None,
**attributes,
)

Expand Down

0 comments on commit e816989

Please sign in to comment.