From e8f0e9715595c3f115c5fb72f98aedd6b608ccbd Mon Sep 17 00:00:00 2001
From: Pinapelz <yukais@pinapelz.com>
Date: Mon, 19 May 2025 18:30:31 -0700
Subject: fix: frontend titlebar typecheck

---
 site/src/components/TitleBar.tsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'site/src/components/TitleBar.tsx')

diff --git a/site/src/components/TitleBar.tsx b/site/src/components/TitleBar.tsx
index 651b402..daecb4e 100644
--- a/site/src/components/TitleBar.tsx
+++ b/site/src/components/TitleBar.tsx
@@ -111,7 +111,7 @@ const TitleBar: React.FC = () => {
     },
   ];
 
-  const calculateDropdownPosition = (buttonRef: React.RefObject<HTMLElement>) => {
+  const calculateDropdownPosition = (buttonRef: React.RefObject<HTMLElement | null>) => {
     if (!buttonRef.current) return {};
 
     const rect = buttonRef.current.getBoundingClientRect();
@@ -138,7 +138,6 @@ const TitleBar: React.FC = () => {
     setOtherDropdownOpen(newState);
   };
 
-  // Handle window resize
   useEffect(() => {
     const handleResize = () => {
       if (dropdownOpen) {
-- 
cgit v1.2.3

