limit realtime record set to 15

This commit is contained in:
Francis Cao 2023-04-25 22:52:53 -07:00
parent 46615fe7eb
commit 9b349b53c4

View File

@ -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];