mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 11:05:54 +08:00
Merge branch 'feat/attachments' into release/0.10.0-beta
This commit is contained in:
commit
c3811c4c23
@ -581,6 +581,16 @@ export const toNodeAvailableVars = ({
|
||||
environmentVariables,
|
||||
conversationVariables,
|
||||
})
|
||||
const itemChildren = itemType === VarType.file
|
||||
? {
|
||||
children: OUTPUT_FILE_SUB_VARIABLES.map((key) => {
|
||||
return {
|
||||
variable: key,
|
||||
type: key === 'size' ? VarType.number : VarType.string,
|
||||
}
|
||||
}),
|
||||
}
|
||||
: {}
|
||||
const iterationVar = {
|
||||
nodeId: iterationNode?.id,
|
||||
title: t('workflow.nodes.iteration.currentIteration'),
|
||||
@ -588,6 +598,7 @@ export const toNodeAvailableVars = ({
|
||||
{
|
||||
variable: 'item',
|
||||
type: itemType,
|
||||
...itemChildren,
|
||||
},
|
||||
{
|
||||
variable: 'index',
|
||||
|
Loading…
x
Reference in New Issue
Block a user