Fix WebsiteSelect showing empty value on initial load.
Some checks are pending
Node.js CI / build (push) Waiting to run

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 <noreply@anthropic.com>
This commit is contained in:
Mike Cao 2026-02-06 04:04:53 -08:00
parent b3a77d7c04
commit dea3c41ecc

View file

@ -46,7 +46,7 @@ export function WebsiteSelect({
const renderValue = () => {
return (
<Row maxWidth="160px">
<Text truncate>{name}</Text>
<Text truncate>{name ?? website?.name}</Text>
</Row>
);
};