mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 09:45:04 +01:00
limit realtime record set to 15
This commit is contained in:
parent
46615fe7eb
commit
9b349b53c4
@ -10,6 +10,7 @@ export function RealtimeUrls({ websiteDomain, data = {} }) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { pageviews } = data;
|
||||
const [filter, setFilter] = useState(FILTER_REFERRERS);
|
||||
const limit = 15;
|
||||
|
||||
const buttons = [
|
||||
{
|
||||
@ -47,7 +48,8 @@ export function RealtimeUrls({ websiteDomain, data = {} }) {
|
||||
}
|
||||
return arr;
|
||||
}, [])
|
||||
.sort(firstBy('y', -1)),
|
||||
.sort(firstBy('y', -1))
|
||||
.slice(0, limit),
|
||||
);
|
||||
|
||||
const pages = percentFilter(
|
||||
@ -62,7 +64,8 @@ export function RealtimeUrls({ websiteDomain, data = {} }) {
|
||||
}
|
||||
return arr;
|
||||
}, [])
|
||||
.sort(firstBy('y', -1)),
|
||||
.sort(firstBy('y', -1))
|
||||
.slice(0, limit),
|
||||
);
|
||||
|
||||
return [referrers, pages];
|
||||
|
Loading…
Reference in New Issue
Block a user