From dea3c41eccb1dc5b0bc1972f1e5c579239469c7b Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Fri, 6 Feb 2026 04:04:53 -0800 Subject: [PATCH] Fix WebsiteSelect showing empty value on initial load. Fall back to queried website name when local state hasn't been set yet, since useState only captures the initial value which is undefined before the query resolves. Co-Authored-By: Claude Opus 4.6 --- src/components/input/WebsiteSelect.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/input/WebsiteSelect.tsx b/src/components/input/WebsiteSelect.tsx index 7004896a7..636911844 100644 --- a/src/components/input/WebsiteSelect.tsx +++ b/src/components/input/WebsiteSelect.tsx @@ -46,7 +46,7 @@ export function WebsiteSelect({ const renderValue = () => { return ( - {name} + {name ?? website?.name} ); };