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.

feature(DataTable): render nullish labels as 'Unknown'

Alexander Kleinfb85d576a2c8
diff --git a/components/metrics/DataTable.js b/components/metrics/DataTable.js
index 5cf9ddb4f..2eff55199 100644
--- a/components/metrics/DataTable.js
+++ b/components/metrics/DataTable.js
@@ -27,7 +27,7 @@ export default function DataTable({
return (
<AnimatedRow
key={label}
- label={renderLabel ? renderLabel(row) : label}
+ label={renderLabel ? renderLabel(row) : label ?? 'Unknown'}
value={value}
percent={percent}
animate={animate && !virtualize}