Skip to content

Commit

Permalink
fix(transformer): render props 多次编译报错,close #3798
Browse files Browse the repository at this point in the history
  • Loading branch information
yuche committed Jul 12, 2019
1 parent 61ac83c commit 525d278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-transformer-wx/src/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ export class RenderParser {
if (t.isReturnStatement(parentNode)) {
if (!isFinalReturn) {
const callExpr = parentPath.findParent(p => p.isCallExpression())
if (callExpr.isCallExpression()) {
if (callExpr && callExpr.isCallExpression()) {
const callee = callExpr.node.callee
if (this.loopComponents.has(callExpr)) {
return
Expand Down

0 comments on commit 525d278

Please sign in to comment.