Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d8d6cd1

Browse files
committedOct 14, 2024·
cleaner
1 parent 1fbcbbb commit d8d6cd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎packages/svelte/src/internal/client/runtime.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,10 +459,10 @@ export function update_effect(effect) {
459459
}
460460

461461
try {
462-
if ((flags & BLOCK_EFFECT) === 0) {
463-
destroy_effect_children(effect);
464-
} else {
462+
if ((flags & BLOCK_EFFECT) !== 0) {
465463
destroy_block_effect_children(effect);
464+
} else {
465+
destroy_effect_children(effect);
466466
}
467467

468468
execute_effect_teardown(effect);

0 commit comments

Comments
 (0)
Please sign in to comment.