Commit fb06c72
viz: fix asset detail card showing undefined class/sector after wedge click
Zoomed-mode asset wedge click handler was setting selectedAsset to the
hierarchy leaf (only asset_id/symbol/name/chain_ecosystem/effective_from)
instead of looking up the full record from assets_flat. Result: detail
card rendered "undefined — undefined" for class, sector, sub-sector.
Build assetById lookup at initSunburst top; click + keydown handlers now
resolve via assetById[d.data.asset_id] before setState.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ef022a1 commit fb06c72
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
373 | 378 | | |
374 | 379 | | |
375 | 380 | | |
| |||
710 | 715 | | |
711 | 716 | | |
712 | 717 | | |
713 | | - | |
714 | | - | |
| 718 | + | |
| 719 | + | |
715 | 720 | | |
716 | 721 | | |
717 | 722 | | |
| |||
722 | 727 | | |
723 | 728 | | |
724 | 729 | | |
725 | | - | |
| 730 | + | |
| 731 | + | |
726 | 732 | | |
727 | 733 | | |
728 | 734 | | |
| |||
0 commit comments