From 48b56a3d88d3a76623cd54eca8e550134e4fc735 Mon Sep 17 00:00:00 2001 From: zhaoying Date: Fri, 17 Apr 2026 19:58:44 +0800 Subject: [PATCH] fix(web): update interface type --- .../Workflow/components/Properties/CaseList/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/views/Workflow/components/Properties/CaseList/index.tsx b/web/src/views/Workflow/components/Properties/CaseList/index.tsx index 227b6ffb..6eaa08e1 100644 --- a/web/src/views/Workflow/components/Properties/CaseList/index.tsx +++ b/web/src/views/Workflow/components/Properties/CaseList/index.tsx @@ -2,7 +2,7 @@ * @Author: ZhaoYing * @Date: 2026-02-09 18:24:53 * @Last Modified by: ZhaoYing - * @Last Modified time: 2026-04-17 19:48:59 + * @Last Modified time: 2026-04-17 19:58:13 */ import { useEffect, useMemo, type FC } from 'react' import clsx from 'clsx' @@ -45,7 +45,7 @@ interface CaseItem { } interface CaseListProps { value?: CaseItem[]; - onChange?: (value: Array<{ logical_operator: 'and' | 'or'; expressions: { left: string; operator: string; right: string; }[] }>) => void; + onChange?: (value: CaseItem[]) => void; options: Suggestion[]; name: string; selectedNode?: any; @@ -221,7 +221,7 @@ const ArrayFileSubConditions: FC = ({ conditionFiel onChange={(value: string) => { form.setFieldValue([name, caseIndex, 'expressions', conditionIndex, 'sub_variable_condition', 'conditions', subIndex], { key: value, - input_type: value === 'size' ? 'Constant' : undefined, + input_type: value === 'size' ? 'constant' : undefined, value: undefined, operator: value === 'size' ? 'ge' : 'eq', }); @@ -488,7 +488,7 @@ const CaseList: FC = ({ left: newValue, operator: undefined, right: undefined, - input_type: 'Constant' + input_type: 'constant' }); };