Merge pull request #53 from alibaba/feat/hasLoop

fix: The outline tree does not display the loop flag when the loop is…
This commit is contained in:
LeoYuan 袁力皓 2022-03-01 18:59:44 +08:00 committed by GitHub
commit 71bb2886a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -521,7 +521,7 @@ export class Node<Schema extends NodeSchema = NodeSchema> {
return false;
}
if (Array.isArray(value) && value.length > 0) {
if (Array.isArray(value)) {
return true;
}
if (isJSExpression(value)) {