Skip to content

Commit 07286ab

Browse files
authored
Merge pull request #917 from 1AhmedYasser/fix-value-condition-check
Fix: Value Condition Check
2 parents be9a61b + 323332c commit 07286ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

GUI/src/services/service-builder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ const buildConditionString = (group: any, assignedVariableNames: Set<string>): s
146146
const rule = child;
147147
const rawField = rule.field.replaceAll('${', '').replaceAll('}', '');
148148
const absoluteValue = removeWrapperQuotes(rule.value.replaceAll('${', '').replaceAll('}', ''));
149-
const value = isNumericString(absoluteValue) ? absoluteValue : `"${absoluteValue}"`;
149+
const value = formatField(absoluteValue);
150150
const field = formatField(rawField);
151151
return `${field} ${rule.operator} ${value}`;
152152
}
@@ -161,7 +161,7 @@ const buildConditionString = (group: any, assignedVariableNames: Set<string>): s
161161
const rule = group as Rule;
162162
const rawField = rule.field.replaceAll('${', '').replaceAll('}', '');
163163
const absoluteValue = removeWrapperQuotes(rule.value.replaceAll('${', '').replaceAll('}', ''));
164-
const value = isNumericString(absoluteValue) ? absoluteValue : `"${absoluteValue}"`;
164+
const value = formatField(absoluteValue);
165165
const field = formatField(rawField);
166166
return `${field} ${rule.operator} ${value}`;
167167
}

0 commit comments

Comments
 (0)