mirror of
https://github.com/langgenius/dify.git
synced 2026-04-23 08:26:28 +08:00
chore: revert not related change
This commit is contained in:
parent
73c77b6701
commit
9ce4517ee1
@ -63,10 +63,9 @@ const AddBlock = ({
|
|||||||
} = store.getState()
|
} = store.getState()
|
||||||
const nodes = getNodes()
|
const nodes = getNodes()
|
||||||
const nodesWithSameType = nodes.filter(node => node.data.type === type)
|
const nodesWithSameType = nodes.filter(node => node.data.type === type)
|
||||||
const nodeMetaData = nodesMetaDataMap?.[type]
|
const {
|
||||||
if (!nodeMetaData)
|
defaultValue,
|
||||||
return
|
} = nodesMetaDataMap![type]
|
||||||
const { defaultValue } = nodeMetaData
|
|
||||||
const { newNode } = generateNewNode({
|
const { newNode } = generateNewNode({
|
||||||
type: getNodeCustomTypeByNodeDataType(type),
|
type: getNodeCustomTypeByNodeDataType(type),
|
||||||
data: {
|
data: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user