From 73596a835a60b558b0c6c94ccf0ef71fdd8b388a Mon Sep 17 00:00:00 2001
From: Wolfboy248 <georgejvindkarlsen@gmail.com>
Date: Wed, 30 Oct 2024 08:51:20 +0100
Subject: frontend: guys why does it do that

---
 frontend/src/components/Summary.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'frontend/src/components/Summary.tsx')

diff --git a/frontend/src/components/Summary.tsx b/frontend/src/components/Summary.tsx
index 23da82c..aa351da 100644
--- a/frontend/src/components/Summary.tsx
+++ b/frontend/src/components/Summary.tsx
@@ -57,7 +57,7 @@ const Summary: React.FC<SummaryProps> = ({ selectedRun, setSelectedRun, data })
 
   React.useEffect(() => {
     _select_run(0, selectedCategory);
-  }, []);
+  }, [selectedCategory]);
 
   return (
     <>
-- 
cgit v1.2.3

