mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 22:27:16 +01:00
Fix WebsiteSelect showing empty value on initial load.
Some checks are pending
Node.js CI / build (push) Waiting to run
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:
parent
b3a77d7c04
commit
dea3c41ecc
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ export function WebsiteSelect({
|
|||
const renderValue = () => {
|
||||
return (
|
||||
<Row maxWidth="160px">
|
||||
<Text truncate>{name}</Text>
|
||||
<Text truncate>{name ?? website?.name}</Text>
|
||||
</Row>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue