Преглед на файлове

fix: tool var type error (#9937)

Joel преди 7 месеца
родител
ревизия
705946cc40
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      web/app/components/workflow/nodes/tool/components/input-var-list.tsx

+ 2 - 2
web/app/components/workflow/nodes/tool/components/input-var-list.tsx

@@ -72,7 +72,7 @@ const InputVarList: FC<Props> = ({
         }
         else {
           draft[variable] = {
-            type: varKindType,
+            type: VarKindType.variable,
             value: varValue,
           }
         }
@@ -171,7 +171,7 @@ const InputVarList: FC<Props> = ({
                   value={varInput?.type === VarKindType.constant ? (varInput?.value || '') : (varInput?.value || [])}
                   onChange={handleNotMixedTypeChange(variable)}
                   onOpen={handleOpen(index)}
-                  defaultVarKindType={varInput?.type}
+                  defaultVarKindType={VarKindType.variable}
                   filterVar={isNumber ? filterVar : undefined}
                   availableVars={isSelect ? availableVars : undefined}
                   schema={schema}