From b863dd7de280ec30b9ed3cadfa6278ed8f40493f Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 4 Sep 2024 10:47:26 +0800 Subject: [PATCH] fix: list filter init value --- .../workflow/nodes/list-filter/components/filter-condition.tsx | 2 +- web/app/components/workflow/nodes/list-filter/default.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/components/workflow/nodes/list-filter/components/filter-condition.tsx b/web/app/components/workflow/nodes/list-filter/components/filter-condition.tsx index 27faf71843..4421b73a12 100644 --- a/web/app/components/workflow/nodes/list-filter/components/filter-condition.tsx +++ b/web/app/components/workflow/nodes/list-filter/components/filter-condition.tsx @@ -22,7 +22,7 @@ type Props = { } const FilterCondition: FC = ({ - condition, + condition = { key: '', comparison_operator: ComparisonOperator.equal, value: '' }, varType, onChange, hasSubVariable, diff --git a/web/app/components/workflow/nodes/list-filter/default.ts b/web/app/components/workflow/nodes/list-filter/default.ts index cd7676fb99..b957a027e5 100644 --- a/web/app/components/workflow/nodes/list-filter/default.ts +++ b/web/app/components/workflow/nodes/list-filter/default.ts @@ -7,6 +7,7 @@ const i18nPrefix = 'workflow.errorMsg' const nodeDefault: NodeDefault = { defaultValue: { variable: [], + filter_by: [], order_by: { enabled: false, key: '',