From d409ebf23621e78c07e730e2a77110f8c015c078 Mon Sep 17 00:00:00 2001 From: jen Date: Fri, 25 Oct 2024 13:58:52 +0100 Subject: [PATCH] fix: trim section name on check --- designer/client/conditions/SelectConditions.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/designer/client/conditions/SelectConditions.tsx b/designer/client/conditions/SelectConditions.tsx index f3782be302..8c292f6918 100644 --- a/designer/client/conditions/SelectConditions.tsx +++ b/designer/client/conditions/SelectConditions.tsx @@ -202,7 +202,9 @@ class SelectConditions extends React.Component { conditions: any[] ) { if (isDuplicateCondition(conditions, conditionToAdd.name)) return; - if (fieldName === conditionFieldName) conditions.push(conditionToAdd); + + if (fieldName === this.trimSectionName(conditionFieldName)) + conditions.push(conditionToAdd); } trimSectionName(fieldName: string) {