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.

Prevent null error.

Mike Cao41593ee1df9b
diff --git a/src/components/input/DateFilter.tsx b/src/components/input/DateFilter.tsx
index f025da97b..721c43505 100644
--- a/src/components/input/DateFilter.tsx
+++ b/src/components/input/DateFilter.tsx
@@ -109,7 +109,7 @@ export function DateFilter({
);
}
- return options.find(e => e.value === value).label;
+ return options.find(e => e.value === value)?.label;
};
return (