Skip to content

Commit

Permalink
Make sure child DOM gets sent back because it can be different than w…
Browse files Browse the repository at this point in the history
…hat the parent has rendered.
  • Loading branch information
adamghill committed Oct 11, 2023
1 parent 53c8f8d commit 4f3945e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions django_unicorn/views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,6 @@ def _process_component_request(request: HttpRequest, component_request: Componen
# i.e. render_not_modified = render_not_modified and (parent hash test)
pass

# If there is a parent dom and a child dom, remove the child dom because it is superfluous
if parent.get("dom") and result.get("dom"):
del result["dom"]

parent_result.update({"parent": parent})
component = parent_component
parent_component = parent_component.parent
Expand Down

0 comments on commit 4f3945e

Please sign in to comment.