From 1482eb0348d4e20f81eef2eea860d1dd4ed5d2d0 Mon Sep 17 00:00:00 2001 From: Joel Date: Mon, 18 Mar 2024 14:57:18 +0800 Subject: [PATCH] feat: generation support vars --- .../workflow/nodes/_base/components/variable/utils.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/web/app/components/workflow/nodes/_base/components/variable/utils.ts b/web/app/components/workflow/nodes/_base/components/variable/utils.ts index ed7af5cfc0..9526f77f69 100644 --- a/web/app/components/workflow/nodes/_base/components/variable/utils.ts +++ b/web/app/components/workflow/nodes/_base/components/variable/utils.ts @@ -66,12 +66,11 @@ const formatItem = (item: any, isChatMode: boolean, filterVar: (payload: Var, se variable: 'sys.query', type: VarType.string, }) - - res.vars.push({ - variable: 'sys.files', - type: VarType.arrayFile, - }) } + res.vars.push({ + variable: 'sys.files', + type: VarType.arrayFile, + }) break }