| 159 | if (!path && edge) changePlace({ page: Math.max(0, Math.floor((allNodes.findIndex(node => node.id === edge.target) - 1) / 4)) }); |
| 160 | } |
| 161 | function selectStep(index: number) { |
| 162 | setOverview(false); |
| 163 | const node = allNodes[index]; |
| 164 | if (!node || !path) return; |
| 165 | changePlace({ step: index }); setSelection({ node: node.id }); if (node.symbol) onSelectSymbol(node.symbol); |
| 166 | } |
| 167 | function follow(id: string) { |
| 168 | const operation = allNodes.find(node => node.id === id)?.symbol; |
| 169 | if (operation && operation.id !== entryId) request(operation, undefined, from ?? entry); |