mirror of
https://github.com/zhigang1992/umami.git
synced 2026-04-30 05:35:19 +08:00
feature(CountriesTable): default nullish labels to 'Unknown'
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user