fix: The outline tree does not display the loop flag when the loop is an empty array

This commit is contained in:
liujuping 2022-02-28 18:49:28 +08:00
parent 3c798f0d4a
commit 191e284f2f

View File

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