Skip to content

Commit

Permalink
Re-render beacon dropdowns, too.
Browse files Browse the repository at this point in the history
  • Loading branch information
KirkMcDonald committed Oct 17, 2024
1 parent 6585139 commit 4f87b27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions display.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,10 @@ export function displayItems(spec, totals) {
.text(d => spec.format.alignCount(spec.getCount(d.recipe, totals.rates.get(d.recipe))))
let moduleRow = row.filter(d => d.moduleSpec !== null)
let moduleCell = moduleRow.selectAll("td.module-cell")
// XXX: Something's wrong with how I did the module dropdowns. Work around
// the issue for now by re-rendering all of them on each update.
moduleCell.selectAll("*").remove()
moduleRow.selectAll("span.beacon-container").selectAll("*").remove()
moduleDropdown(moduleCell, d => d.slots)
moduleDropdown(moduleRow.selectAll("span.beacon-container"), d => d.beaconModules)
moduleRow.selectAll("span.beacon-count input")
Expand Down

0 comments on commit 4f87b27

Please sign in to comment.