Skip to content

Commit

Permalink
fix: send wireframe children for updated mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto committed Jan 15, 2024
1 parent 6eadf9b commit 65ec543
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -729,10 +729,11 @@ public class PostHogReplayIntegration(
// we have to copy without the childWireframes, otherwise they all would be different
// if one of the child is different, but we only wanna compare the parent
val oldItem = oldMap[id]?.copy(childWireframes = null) ?: continue
val newItem = newMap[id]?.copy(childWireframes = null) ?: continue
val newItem = newMap[id] ?: continue
val newItemCopy = newItem.copy(childWireframes = null)

// If the items are different (any property has a different value), add the new item to the updatedItems list
if (oldItem != newItem) {
if (oldItem != newItemCopy) {
updatedItems.add(newItem)
}
}
Expand Down

0 comments on commit 65ec543

Please sign in to comment.