Skip to content

Commit

Permalink
fix: 修复顶层数据不是对象在公式中被过滤掉的问题 Close: #11035 (#11044)
Browse files Browse the repository at this point in the history
  • Loading branch information
2betop authored Oct 15, 2024
1 parent 0f0d2a8 commit 7f3aa7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/amis-editor-core/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}

Expand Down

0 comments on commit 7f3aa7e

Please sign in to comment.