Skip to content

Commit 7870297

Browse files
authored
Update packages/@lwc/template-compiler/src/parser/expression-complex/html.ts
1 parent ed5fed6 commit 7870297

File tree

1 file changed

+1
-1
lines changed
  • packages/@lwc/template-compiler/src/parser/expression-complex

1 file changed

+1
-1
lines changed

packages/@lwc/template-compiler/src/parser/expression-complex/html.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ class TemplateHtmlParser extends Parser<DefaultTreeAdapterMap> {
279279
// that, we create a new text node for the template expression rather than
280280
// allowing the concatenation to proceed.
281281
_insertCharacters(token: Token.CharacterToken) {
282-
const parentNode = this.openElements.current!;
282+
const parentNode = this.openElements.current;
283283
const previousPeer = parentNode.childNodes.at(-1);
284284
const html = this.tokenizer.preprocessor.html;
285285
if (

0 commit comments

Comments
 (0)