fix: 修复顶层数据不是对象在公式中被过滤掉的问题 Close: #11035 (#11044)

This commit is contained in:
liaoxuezhi 2024-10-15 12:08:35 +08:00 committed by GitHub
parent 0f0d2a878e
commit 7f3aa7e39b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1394,7 +1394,7 @@ export async function resolveVariablesFromScope(node: any, manager: any) {
manager?.variableManager?.getVariableFormulaOptions() || [];
return [...hostNodeVaraibles, ...dataPropsAsOptions, ...variables].filter(
(item: any) => item.children?.length
(item: any) => (item.children && item.children?.length) || !item.children
);
}