Bugfix: fixed listItem component transform

Signed-off-by: laibo102 <laibo2@huawei.com>
Change-Id: Ie055b3c53bd82836cdc40793116c19298579fa3d
This commit is contained in:
laibo102
2022-09-05 12:23:19 +08:00
parent 0a2f3feebc
commit 57285b0387
+1 -1
View File
@@ -2007,7 +2007,7 @@ function checkButtonParamHasLabel(node: ts.EtsComponentExpression, log: LogInfo[
function isLazyForEachChild(node: ts.ExpressionStatement): boolean {
let temp: any = node.parent;
while(!ts.isEtsComponentExpression(temp) && !ts.isCallExpression(temp)) {
while(temp && !ts.isEtsComponentExpression(temp) && !ts.isCallExpression(temp)) {
temp = temp.parent;
}
if (temp && temp.expression && (temp.expression as ts.Identifier).escapedText.toString() === COMPONENT_LAZYFOREACH) {