aboutsummaryrefslogtreecommitdiffstats
path: root/site/src
diff options
context:
space:
mode:
Diffstat (limited to 'site/src')
-rw-r--r--site/src/components/TitleBar.tsx3
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) {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage