Skip to content

Commit 651e90e

Browse files
committed
revert #17244
1 parent 2975219 commit 651e90e

File tree

1 file changed

+1
-11
lines changed
  • packages/svelte/src/internal/client/dom/blocks

1 file changed

+1
-11
lines changed

packages/svelte/src/internal/client/dom/blocks/each.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -657,10 +657,6 @@ function link(state, prev, next) {
657657
state.first = next;
658658
state.effect.first = next && next.e;
659659
} else {
660-
if (prev.e === state.effect.last && next !== null) {
661-
state.effect.last = next.e;
662-
}
663-
664660
if (prev.e.next) {
665661
prev.e.next.prev = null;
666662
}
@@ -669,13 +665,7 @@ function link(state, prev, next) {
669665
prev.e.next = next && next.e;
670666
}
671667

672-
if (next === null) {
673-
state.effect.last = prev && prev.e;
674-
} else {
675-
if (next.e === state.effect.last && prev === null) {
676-
state.effect.last = next.e.prev;
677-
}
678-
668+
if (next !== null) {
679669
if (next.e.prev) {
680670
next.e.prev.next = null;
681671
}

0 commit comments

Comments
 (0)