mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 03:36:36 +08:00
chore: no var not show var group
This commit is contained in:
parent
2aa8847b78
commit
c0ccffa1c3
@ -16,6 +16,7 @@ import OutputVars, { VarItem } from '@/app/components/workflow/nodes/_base/compo
|
|||||||
import { Resolution } from '@/types/app'
|
import { Resolution } from '@/types/app'
|
||||||
import { InputVarType, type NodePanelProps } from '@/app/components/workflow/types'
|
import { InputVarType, type NodePanelProps } from '@/app/components/workflow/types'
|
||||||
import BeforeRunForm from '@/app/components/workflow/nodes/_base/components/before-run-form'
|
import BeforeRunForm from '@/app/components/workflow/nodes/_base/components/before-run-form'
|
||||||
|
import type { Props as FormProps } from '@/app/components/workflow/nodes/_base/components/before-run-form/form'
|
||||||
|
|
||||||
const i18nPrefix = 'workflow.nodes.llm'
|
const i18nPrefix = 'workflow.nodes.llm'
|
||||||
|
|
||||||
@ -57,14 +58,18 @@ const Panel: FC<NodePanelProps<LLMNodeType>> = ({
|
|||||||
const model = inputs.model
|
const model = inputs.model
|
||||||
|
|
||||||
const singleRunForms = (() => {
|
const singleRunForms = (() => {
|
||||||
const forms = [
|
const forms: FormProps[] = []
|
||||||
{
|
|
||||||
label: t(`${i18nPrefix}.singleRun.variable`)!,
|
if (varInputs.length > 0) {
|
||||||
inputs: varInputs,
|
forms.push(
|
||||||
values: inputVarValues,
|
{
|
||||||
onChange: setInputVarValues,
|
label: t(`${i18nPrefix}.singleRun.variable`)!,
|
||||||
},
|
inputs: varInputs,
|
||||||
]
|
values: inputVarValues,
|
||||||
|
onChange: setInputVarValues,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
if (inputs.context?.variable_selector && inputs.context?.variable_selector.length > 0) {
|
if (inputs.context?.variable_selector && inputs.context?.variable_selector.length > 0) {
|
||||||
forms.push(
|
forms.push(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user