Skip to content

Commit

Permalink
Update packages/svelte2tsx/src/htmlxtojsx_v2/nodes/SnippetBlock.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm authored Jun 24, 2024
1 parent 0f08748 commit d08306a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function handleSnippet(
const startEnd =
str.original.indexOf(
'}',
lastParameter?.typeAnnotation.end ?? lastParameter?.end ?? snippetBlock.expression.end
lastParameter?.typeAnnotation?.end ?? lastParameter?.end ?? snippetBlock.expression.end
) + 1;

if (isImplicitProp) {
Expand Down

0 comments on commit d08306a

Please sign in to comment.