fix(engine): 🐛 Parse condition value variable
This commit is contained in:
@@ -62,7 +62,7 @@ const executeComparison =
|
|||||||
if (!comparison?.variableId) return false
|
if (!comparison?.variableId) return false
|
||||||
const inputValue =
|
const inputValue =
|
||||||
variables.find((v) => v.id === comparison.variableId)?.value ?? ''
|
variables.find((v) => v.id === comparison.variableId)?.value ?? ''
|
||||||
const { value } = comparison
|
const value = parseVariables(variables)(comparison.value)
|
||||||
if (isNotDefined(value)) return false
|
if (isNotDefined(value)) return false
|
||||||
switch (comparison.comparisonOperator) {
|
switch (comparison.comparisonOperator) {
|
||||||
case ComparisonOperators.CONTAINS: {
|
case ComparisonOperators.CONTAINS: {
|
||||||
|
|||||||
Reference in New Issue
Block a user