pull/10939/head
Rich Harris 2 years ago
parent 3f1c3e448a
commit 35bf9bb575

@ -113,7 +113,7 @@ export function capture_fragment_from_node(node) {
if ( if (
node.nodeType === 8 && node.nodeType === 8 &&
/** @type {Comment} */ (node).data === '[' && /** @type {Comment} */ (node).data === '[' &&
hydrate_nodes[hydrate_nodes.length - 1] !== node hydrate_nodes?.[hydrate_nodes.length - 1] !== node
) { ) {
const nodes = /** @type {Node[]} */ (get_hydrate_nodes(node)); const nodes = /** @type {Node[]} */ (get_hydrate_nodes(node));
const last_child = nodes[nodes.length - 1] || node; const last_child = nodes[nodes.length - 1] || node;

Loading…
Cancel
Save