parent
f193e9764e
commit
817071e448
1 changed files with 2 additions and 1 deletions
|
|
@ -612,6 +612,7 @@ const getIterationItemType = ({
|
||||||
}): VarType => {
|
}): VarType => {
|
||||||
const outputVarNodeId = valueSelector[0]
|
const outputVarNodeId = valueSelector[0]
|
||||||
const isSystem = isSystemVar(valueSelector)
|
const isSystem = isSystemVar(valueSelector)
|
||||||
|
const isChatVar = isConversationVar(valueSelector)
|
||||||
|
|
||||||
const targetVar = isSystem ? beforeNodesOutputVars.find(v => v.isStartNode) : beforeNodesOutputVars.find(v => v.nodeId === outputVarNodeId)
|
const targetVar = isSystem ? beforeNodesOutputVars.find(v => v.isStartNode) : beforeNodesOutputVars.find(v => v.nodeId === outputVarNodeId)
|
||||||
|
|
||||||
|
|
@ -621,7 +622,7 @@ const getIterationItemType = ({
|
||||||
let arrayType: VarType = VarType.string
|
let arrayType: VarType = VarType.string
|
||||||
|
|
||||||
let curr: any = targetVar.vars
|
let curr: any = targetVar.vars
|
||||||
if (isSystem) {
|
if (isSystem || isChatVar) {
|
||||||
arrayType = curr.find((v: any) => v.variable === (valueSelector).join('.'))?.type
|
arrayType = curr.find((v: any) => v.variable === (valueSelector).join('.'))?.type
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue