remove urlpath conditional
parent
05ece6a4d0
commit
db845d6c04
|
@ -53,7 +53,6 @@ export default function RealtimeUrls({ websiteDomain, data = {} }) {
|
|||
const pages = percentFilter(
|
||||
pageviews
|
||||
.reduce((arr, { urlPath }) => {
|
||||
if (urlPath?.startsWith('/')) {
|
||||
const row = arr.find(({ x }) => x === urlPath);
|
||||
|
||||
if (!row) {
|
||||
|
@ -61,7 +60,6 @@ export default function RealtimeUrls({ websiteDomain, data = {} }) {
|
|||
} else {
|
||||
row.y += 1;
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
}, [])
|
||||
.sort(firstBy('y', -1)),
|
||||
|
|
Loading…
Reference in New Issue