Skip to content

Commit df27bb1

Browse files
authored
fix: split-operator-to-remove-append (#5871)
1 parent c59d9e9 commit df27bb1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • frontend/web/components/segments/Rule

frontend/web/components/segments/Rule/Rule.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ const Rule: React.FC<RuleProps> = ({
6969
)
7070
const newOperator = operators.find((op) => op.value === operatorValue)
7171

72-
const updates: Partial<SegmentCondition> = { operator: operatorValue }
72+
// Split the append part of the operator as not handled by backend
73+
const updates: Partial<SegmentCondition> = {
74+
operator: operatorValue?.split(':')[0],
75+
}
7376

7477
if (newOperator?.hideValue) {
7578
updates.value = null

0 commit comments

Comments
 (0)