fix
This commit is contained in:
@@ -51,7 +51,7 @@ export function NodeMenubar({ nodeId, nodeType, editInputsContent, insertTagsCon
|
|||||||
data: typeof node.data === 'object' && node.data !== null ? { ...node.data } : node.data,
|
data: typeof node.data === 'object' && node.data !== null ? { ...node.data } : node.data,
|
||||||
style: DEFAULT_NODE_STYLE[nodeType] ?? DEFAULT_NODE_STYLE.config,
|
style: DEFAULT_NODE_STYLE[nodeType] ?? DEFAULT_NODE_STYLE.config,
|
||||||
}
|
}
|
||||||
if (newNode.data?.title && nodeType === 'config') newNode.data.title = `config-${newId}`
|
if (newNode.data?.title && nodeType === 'config') newNode.data.title = `${newId}`
|
||||||
return nds.concat(newNode)
|
return nds.concat(newNode)
|
||||||
})
|
})
|
||||||
}, [node, nodeType, setNodes])
|
}, [node, nodeType, setNodes])
|
||||||
|
|||||||
Reference in New Issue
Block a user