Skip to content

Commit 470d25e

Browse files
committed
another
1 parent e685deb commit 470d25e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,11 @@ export function await_block(anchor, get_input, pending_fn, then_fn, catch_fn) {
6363
/** @param {import('#client').Effect} effect */
6464
function pause(effect) {
6565
if ((effect.f & DESTROYED) !== 0) return;
66-
const block = effect.block;
66+
const dom = effect.dom;
6767

6868
pause_effect(effect, () => {
6969
// TODO make this unnecessary
70-
const dom = block?.d;
71-
if (dom) remove(dom);
70+
if (dom !== null) remove(dom);
7271
});
7372
}
7473

packages/svelte/src/internal/client/render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ function _mount(Component, options) {
291291
container.removeEventListener(event_name, bound_event_listener);
292292
}
293293
root_event_handles.delete(event_handle);
294-
const dom = block.d;
294+
const dom = effect.dom;
295295
if (dom !== null) {
296296
remove(dom);
297297
}

0 commit comments

Comments
 (0)