Skip to content

Commit

Permalink
fix: trim section name on check (#1296)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenbutongit authored Oct 25, 2024
1 parent e7c10c3 commit cf51fd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion designer/client/conditions/SelectConditions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ class SelectConditions extends React.Component<Props, State> {
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) {
Expand Down

0 comments on commit cf51fd1

Please sign in to comment.