improve condition evaluate
This commit is contained in:
@@ -57,7 +57,7 @@ const ConditionNode = ({ node, disabled, branchId, branchIndex }: ConditionNodeP
|
||||
break;
|
||||
}
|
||||
|
||||
const right: Expr = { type: "const", value: value };
|
||||
const right: Expr = { type: "const", value: value, valueType: t };
|
||||
|
||||
return {
|
||||
type: "compare",
|
||||
|
||||
@@ -318,6 +318,7 @@ const formToExpression = (values: ConditionNodeConfigFormFieldValues): Expr => {
|
||||
const right: Expr = {
|
||||
type: "const",
|
||||
value: rightValue,
|
||||
valueType: type,
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user