mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 05:37:20 +01:00
feature(CountriesTable): default nullish labels to 'Unknown'
This commit is contained in:
parent
fb85d576a2
commit
14e1366fe4
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ export default function CountriesTable({ websiteId, onDataLoad, ...props }) {
|
|||
const countryNames = useCountryNames(locale);
|
||||
|
||||
function renderLabel({ x }) {
|
||||
return <div className={locale}>{countryNames[x]}</div>;
|
||||
return <div className={locale}>{countryNames[x] ?? 'Unknown'}</div>;
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue