fix: guard against page-navigation race + deprecation warning
- playerInfo refresh() now early-returns if DOM elements are gone (happens when navigating away while getPlayers RCON is in flight) - swiched donutLabelsOutside(false) → labelsOutside(false) to silence NVD3 deprecation warning Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -93,7 +93,7 @@ function ServerInfoPage(params, container) {
|
||||
.y(function (d) { return d.y; })
|
||||
.showLabels(true)
|
||||
.donut(true)
|
||||
.donutLabelsOutside(false)
|
||||
.labelsOutside(false)
|
||||
.duration(500)
|
||||
.height(250)
|
||||
.color(['#a78bfa', '#7c3aed', '#e879f9', '#2d1f3d'])
|
||||
|
||||
Reference in New Issue
Block a user