Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/phoenix_live_view/diff.ex
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ defmodule Phoenix.LiveView.Diff do
Map.put(new_prints, key, %{index: index, vars: new_vars, child_prints: child_prints})

# if the diff is empty, we need to check if the item moved
if child_diff == %{} or child_diff == nil do
if child_diff == %{} do
# check if the entry moved, then annotate it with the previous index
diff = if previous_index != index, do: Map.put(diff, index, previous_index), else: diff
{diff, index + 1, new_prints, pending, components, template}
Expand Down
Loading