From 4065bde50d32bda115d39bac16822a1c8c0c628d Mon Sep 17 00:00:00 2001 From: dtoro Date: Sun, 8 Mar 2026 08:34:37 +0100 Subject: [PATCH] fix --- src/components/graph/NodeMenubar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/graph/NodeMenubar.tsx b/src/components/graph/NodeMenubar.tsx index a3d81ba..64b9c24 100644 --- a/src/components/graph/NodeMenubar.tsx +++ b/src/components/graph/NodeMenubar.tsx @@ -51,7 +51,7 @@ export function NodeMenubar({ nodeId, nodeType, editInputsContent, insertTagsCon data: typeof node.data === 'object' && node.data !== null ? { ...node.data } : node.data, 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) }) }, [node, nodeType, setNodes])