|
|
@@ -68,6 +68,13 @@ export function ConditionBuilder({
|
|
|
}
|
|
|
|
|
|
const updateCondition = (index: number, updates: Partial<Condition>) => {
|
|
|
+ // Strip {{...}} template syntax from field paths - IF condition uses raw paths
|
|
|
+ if (updates.field) {
|
|
|
+ const match = updates.field.match(/^\{\{(.+)\}\}$/)
|
|
|
+ if (match) {
|
|
|
+ updates.field = match[1]
|
|
|
+ }
|
|
|
+ }
|
|
|
const updated = conditions.map((c, i) =>
|
|
|
i === index ? { ...c, ...updates } : c
|
|
|
)
|