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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
b3a77d7c04
commit
dea3c41ecc
@@ -46,7 +46,7 @@ export function WebsiteSelect({
|
||||
const renderValue = () => {
|
||||
return (
|
||||
<Row maxWidth="160px">
|
||||
<Text truncate>{name}</Text>
|
||||
<Text truncate>{name ?? website?.name}</Text>
|
||||
</Row>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user