Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

feat: add type integer to VarType (#25500)

Tianyi Jingc3f9a7ed9b73
diff --git a/web/app/components/workflow/nodes/if-else/utils.ts b/web/app/components/workflow/nodes/if-else/utils.ts
index 0f56d04fee6..9dd92096765 100644
--- a/web/app/components/workflow/nodes/if-else/utils.ts
+++ b/web/app/components/workflow/nodes/if-else/utils.ts
@@ -97,6 +97,7 @@ export const getOperators = (type?: VarType, file?: { key: string }) => {
ComparisonOperator.notEmpty,
]
case VarType.number:
+ case VarType.integer:
return [
ComparisonOperator.equal,
ComparisonOperator.notEqual,
diff --git a/web/app/components/workflow/types.ts b/web/app/components/workflow/types.ts
index 30c00c7efe6..a86b159a53b 100644
--- a/web/app/components/workflow/types.ts
+++ b/web/app/components/workflow/types.ts
@@ -261,6 +261,7 @@ export type Memory = {
export enum VarType {
string = 'string',
number = 'number',
+ integer = 'integer',
secret = 'secret',
boolean = 'boolean',
object = 'object',