Skip to content

Commit

Permalink
Update src/parser/Expression.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Bronley Plumb <bronley@gmail.com>
  • Loading branch information
markwpearce and TwitchBronBron committed Sep 23, 2022
1 parent 0851282 commit 9cf4f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/Expression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ export class IndexedGetExpression extends Expression {
...this.obj.transpile(state),
this.questionDotToken ? state.transpileToken(this.questionDotToken) : '',
state.transpileToken(this.openingSquare),
...(this.index ? this.index.transpile(state) : []),
...(this.index?.transpile(state) ?? []),
this.closingSquare ? state.transpileToken(this.closingSquare) : ''
];
}
Expand Down

0 comments on commit 9cf4f8e

Please sign in to comment.