mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
Fixed bug with realtime links.
This commit is contained in:
parent
1b172d214b
commit
54cb5d849f
@ -13,7 +13,10 @@ export default function RealtimeViews({ websiteId, data, websites }) {
|
||||
const [filter, setFilter] = useState(FILTER_REFERRERS);
|
||||
const domains = useMemo(() => websites.map(({ domain }) => domain), [websites]);
|
||||
const getDomain = useCallback(
|
||||
id => websites.find(({ website_id }) => website_id === id)?.domain,
|
||||
id =>
|
||||
websites.length === 1
|
||||
? websites[0]?.domain
|
||||
: websites.find(({ website_id }) => website_id === id)?.domain,
|
||||
[websites],
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user