diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-05-19 18:30:31 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-05-19 18:30:31 -0700 |
| commit | e8f0e9715595c3f115c5fb72f98aedd6b608ccbd (patch) | |
| tree | 40549a24d6cb3431c4bdda68465c7a722f1f79d8 | |
| parent | 4c34b978ce6560eb569f7f82838651e62b1ac9c1 (diff) | |
fix: frontend titlebar typecheck
| -rw-r--r-- | site/src/components/TitleBar.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
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) { |
