(id: string)
| 257 | }); |
| 258 | |
| 259 | const commitSelection = (id: string) => { |
| 260 | const node = nodesById.get(id); |
| 261 | if (node == null) { |
| 262 | return; |
| 263 | } |
| 264 | setSelectedId(id); |
| 265 | onSelectionChange?.(id, node); |
| 266 | }; |
| 267 | |
| 268 | const scrollToId = (id: string) => { |
| 269 | const index = idToIndex.get(id); |
no test coverage detected