Skip to content

Commit

Permalink
Update JsxParser.tsx
Browse files Browse the repository at this point in the history
Pass scope, not expression.callee
  • Loading branch information
geoffoliver authored Oct 25, 2024
1 parent 61cf8ab commit 90613c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/components/JsxParser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default class JsxParser extends React.Component<TProps> {
return undefined
}
return parsedCallee(...expression.arguments.map(
arg => this.#parseExpression(arg, expression.callee),
arg => this.#parseExpression(arg, scope),
))
case 'ConditionalExpression':
return this.#parseExpression(expression.test, scope)
Expand Down

0 comments on commit 90613c3

Please sign in to comment.