Skip to content

Commit 644547e

Browse files
committed
more
1 parent 470d25e commit 644547e

File tree

1 file changed

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

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export function await_block(anchor, get_input, pending_fn, then_fn, catch_fn) {
7979

8080
if (pending_fn) {
8181
if (pending_effect && (pending_effect.f & INERT) === 0) {
82-
if (pending_effect.block?.d) remove(pending_effect.block.d);
82+
if (pending_effect.dom) remove(pending_effect.dom);
8383
destroy_effect(pending_effect);
8484
}
8585

@@ -113,7 +113,7 @@ export function await_block(anchor, get_input, pending_fn, then_fn, catch_fn) {
113113

114114
if (then_fn) {
115115
if (then_effect) {
116-
if (then_effect.block?.d) remove(then_effect.block.d);
116+
if (then_effect.dom) remove(then_effect.dom);
117117
destroy_effect(then_effect);
118118
}
119119

@@ -124,8 +124,8 @@ export function await_block(anchor, get_input, pending_fn, then_fn, catch_fn) {
124124

125125
branch.ondestroy = () => {
126126
// TODO this sucks, tidy it up
127-
if (pending_effect?.block?.d) remove(pending_effect.block.d);
128-
if (then_effect?.block?.d) remove(then_effect.block.d);
129-
if (catch_effect?.block?.d) remove(catch_effect.block.d);
127+
if (pending_effect?.dom) remove(pending_effect.dom);
128+
if (then_effect?.dom) remove(then_effect.dom);
129+
if (catch_effect?.dom) remove(catch_effect.dom);
130130
};
131131
}

0 commit comments

Comments
 (0)