Replace .map() with .forEach() where return value is unused

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 08:46:01 +08:00
parent 79811435de
commit dfd5706bcf
8 changed files with 21 additions and 21 deletions

View File

@@ -280,7 +280,7 @@ export default function cytoscapeMap(mapData, dataLayerType, dataLayerOption, cu
}
//存下此刻剛進入畫面時當前所有節點的座標位置
const allNodes = cy.nodes();
allNodes.map(nodeFirstlySave => {
allNodes.forEach(nodeFirstlySave => {
cytoscapeStore.saveNodePosition(nodeFirstlySave.id(), nodeFirstlySave.position(), rank);
});