From 783593a79d77bca766ca7fa21f106f2d448fcd5f Mon Sep 17 00:00:00 2001 From: zhaoying Date: Tue, 20 Jan 2026 16:19:02 +0800 Subject: [PATCH] fix(web): when the type of the loop variable is boolean, value uses Radio --- .../Workflow/components/Properties/CycleVarsList/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/src/views/Workflow/components/Properties/CycleVarsList/index.tsx b/web/src/views/Workflow/components/Properties/CycleVarsList/index.tsx index 9e28c958..dfa82f0a 100644 --- a/web/src/views/Workflow/components/Properties/CycleVarsList/index.tsx +++ b/web/src/views/Workflow/components/Properties/CycleVarsList/index.tsx @@ -1,6 +1,6 @@ import { type FC } from 'react' import { useTranslation } from 'react-i18next'; -import { Form, Select, Input, Button, InputNumber } from 'antd' +import { Form, Select, Input, Button, InputNumber, Radio } from 'antd' import VariableSelect from '../VariableSelect' import type { Suggestion } from '../../Editor/plugin/AutocompletePlugin' @@ -153,6 +153,11 @@ const CycleVarsList: FC = ({ className="rb:w-full! rb:my-1!" onChange={(value) => form.setFieldValue([name, 'value'], value)} /> + : currentType === 'boolean' + ? + True + False + : (