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.

Null check.

Mike Cao538fb49219ef
diff --git a/src/components/metrics/OSTable.tsx b/src/components/metrics/OSTable.tsx
index d822e3afc..7744bf119 100644
--- a/src/components/metrics/OSTable.tsx
+++ b/src/components/metrics/OSTable.tsx
@@ -11,7 +11,7 @@ export function OSTable(props: MetricsTableProps) {
<FilterLink id="os" value={os} label={formatOS(os)}>
<img
src={`${process.env.basePath || ''}/images/os/${
- os?.toLowerCase().replaceAll(/\W/g, '-') || 'unknown'
+ os?.toLowerCase()?.replaceAll(/\W/g, '-') || 'unknown'
}.png`}
alt={os}
width={16}