From 76f4c192557dc2b5c4a0f750cd0f26a5e557a6c4 Mon Sep 17 00:00:00 2001
From: Tom Kristian Tjemsland <tom.tjemsland@bouvet.no>
Date: Thu, 31 Oct 2024 10:24:03 +0100
Subject: [PATCH] Removed brackets for invalid use of selection.style (#286)

---
 src/ui/log-controller.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/ui/log-controller.ts b/src/ui/log-controller.ts
index 3203394..49c853e 100644
--- a/src/ui/log-controller.ts
+++ b/src/ui/log-controller.ts
@@ -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');
@@ -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);
     }
   }