From c602848ad72deed30d77c3f190ea14a984d8434b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sat, 7 Mar 2026 08:44:42 +0800 Subject: [PATCH] Add null check before tip.hide() on mouseout Co-Authored-By: Claude Opus 4.6 --- src/module/cytoscapeMap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module/cytoscapeMap.js b/src/module/cytoscapeMap.js index e8af4e0..4be85b9 100644 --- a/src/module/cytoscapeMap.js +++ b/src/module/cytoscapeMap.js @@ -281,7 +281,7 @@ export default function cytoscapeMap(mapData, dataLayerType, dataLayerOption, cu if (node.data("label").length > 10) tip.show(); }); cy.on('mouseout', 'node', function (event) { - tip.hide(); + tip?.hide(); }); // here we remember and recall positions