mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 09:41:57 +00:00
refactor: 优化当 loop 为空数组时, 判断为有 loop 配置
This commit is contained in:
parent
72098d6550
commit
77d837c010
@ -501,7 +501,7 @@ export class Node<Schema extends NodeSchema = NodeSchema> {
|
||||
}
|
||||
|
||||
/**
|
||||
* has loop when 1. loop is validArray with length > 1 ; OR 2. loop is variable object
|
||||
* has loop when 1. loop is valid array ; OR 2. loop is variable object
|
||||
* @return boolean, has loop config or not
|
||||
*/
|
||||
hasLoop() {
|
||||
@ -510,7 +510,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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user