Skip to content

Commit 899fd7f

Browse files
committed
fix: retrieved cannot be selected
1 parent bc09bbc commit 899fd7f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • src/frontend/platform/src/pages/BuildPage/flow/FlowNode/component

src/frontend/platform/src/pages/BuildPage/flow/FlowNode/component/SelectVar.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ const SelectVar = forwardRef(({
104104
// 过滤不相同tab
105105
if (item.tab && param.tab && item.tab !== param.tab) return
106106
// 过滤当前节点的output变量
107-
if (nodeId === item.id &&( param.key.indexOf('output') === 0 || param.key.indexOf('retrieved') === 0)) return
107+
if (nodeId === item.id && (
108+
param.key.indexOf('output') === 0 ||
109+
(param.key.indexOf('retrieved') === 0 && param.global.split('=')[0] !== 'self')
110+
)) return
108111
// 不能选自己(相同变量名视为self) param.key
109112
if (nodeId === item.id && param.key === itemKey) return
110113
if (!param.global) return

0 commit comments

Comments
 (0)