This commit is contained in:
2026-03-08 08:34:37 +01:00
parent eaf09b475e
commit 4065bde50d

View File

@@ -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])