Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions GUI/src/services/service-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const buildConditionString = (group: any, assignedVariableNames: Set<string>): s
const rule = child;
const rawField = rule.field.replaceAll('${', '').replaceAll('}', '');
const absoluteValue = removeWrapperQuotes(rule.value.replaceAll('${', '').replaceAll('}', ''));
const value = isNumericString(absoluteValue) ? absoluteValue : `"${absoluteValue}"`;
const value = formatField(absoluteValue);
const field = formatField(rawField);
return `${field} ${rule.operator} ${value}`;
}
Expand All @@ -161,7 +161,7 @@ const buildConditionString = (group: any, assignedVariableNames: Set<string>): s
const rule = group as Rule;
const rawField = rule.field.replaceAll('${', '').replaceAll('}', '');
const absoluteValue = removeWrapperQuotes(rule.value.replaceAll('${', '').replaceAll('}', ''));
const value = isNumericString(absoluteValue) ? absoluteValue : `"${absoluteValue}"`;
const value = formatField(absoluteValue);
const field = formatField(rawField);
return `${field} ${rule.operator} ${value}`;
}
Expand Down