Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Fix WebsiteSelect showing empty value on initial load.

Mike Caodea3c41eccb1
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 (
<Row maxWidth="160px">
- <Text truncate>{name}</Text>
+ <Text truncate>{name ?? website?.name}</Text>
</Row>
);
};