Skip to content

Commit

Permalink
Removed brackets for invalid use of selection.style (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomktjemsland authored Oct 31, 2024
1 parent 6b8f54a commit 76f4c19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/log-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ export default class LogController {
newtracks.append('div')
.classed('track-legend', true)
.classed('hidden', legendHeight <= 0)
.style([attr.size], `${legendHeight}px`);
.style(attr.size, `${legendHeight}px`);
}

newtracks.append('div').attr('class', 'track-container');
Expand Down Expand Up @@ -714,7 +714,7 @@ export default class LogController {
if (showLegend) {
const legend = selection.select('.track-legend');
legend
.style([sizeAttr], `${legendHeight}px`)
.style(sizeAttr, `${legendHeight}px`)
.classed('hidden', legendHeight <= 0);
}
}
Expand Down

0 comments on commit 76f4c19

Please sign in to comment.