Skip to content

Commit bb67f1c

Browse files
committed
cleanup
1 parent 0d7ba6a commit bb67f1c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,9 +1396,7 @@ function if_block(anchor_node, condition_fn, consequent_fn, alternate_fn) {
13961396
} else if (current_hydration_fragment !== null) {
13971397
const comment_text = /** @type {Comment} */ (current_hydration_fragment?.[0])?.data;
13981398
if (
1399-
(!comment_text &&
1400-
// Can happen when a svelte:element that is turned into a void element has an if block inside
1401-
current_hydration_fragment[0] !== null) ||
1399+
!comment_text ||
14021400
(comment_text === 'ssr:if:true' && !result) ||
14031401
(comment_text === 'ssr:if:false' && result)
14041402
) {

0 commit comments

Comments
 (0)