mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 17:01:00 +03:00
Merge branch 'main' into feature/Prompt-Chaining
This commit is contained in:
@@ -38,7 +38,7 @@ import useConfirm from 'hooks/useConfirm'
|
||||
import { IconX } from '@tabler/icons'
|
||||
|
||||
// utils
|
||||
import { getUniqueNodeId, initNode, getEdgeLabelName } from 'utils/genericHelper'
|
||||
import { getUniqueNodeId, initNode, getEdgeLabelName, rearrangeToolsOrdering } from 'utils/genericHelper'
|
||||
import useNotifier from 'utils/useNotifier'
|
||||
|
||||
const nodeTypes = { customNode: CanvasNode }
|
||||
@@ -112,7 +112,11 @@ const Canvas = () => {
|
||||
|
||||
if (inputAnchor && inputAnchor.list) {
|
||||
const newValues = node.data.inputs[targetInput] || []
|
||||
newValues.push(`{{${sourceNodeId}.data.instance}}`)
|
||||
if (targetInput === 'tools') {
|
||||
rearrangeToolsOrdering(newValues, sourceNodeId)
|
||||
} else {
|
||||
newValues.push(`{{${sourceNodeId}.data.instance}}`)
|
||||
}
|
||||
value = newValues
|
||||
} else if (inputParam && inputParam.acceptVariable) {
|
||||
value = node.data.inputs[targetInput] || ''
|
||||
|
||||
Reference in New Issue
Block a user