From 2d27a36cccd66dcf6e649fd2377afb700dd90ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Fri, 15 May 2026 06:28:03 +0300 Subject: [PATCH] fix(graph): use setSelectedNode API instead of direct state mutation (code review) --- docs/automation-graph.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/automation-graph.html b/docs/automation-graph.html index e540705c..4c81912d 100644 --- a/docs/automation-graph.html +++ b/docs/automation-graph.html @@ -1329,7 +1329,7 @@ network.on('click', params => { } else if (params.edges.length === 1) { showEdgeLegend(params.edges[0]); } else if (params.nodes.length === 0 && params.edges.length === 0) { - HIGHLIGHT.state.selectedNode = null; + HIGHLIGHT.setSelectedNode(null); HIGHLIGHT.applyHighlight(); document.getElementById('legend-panel').classList.remove('visible'); }