Fix websites check.
This commit is contained in:
@@ -64,7 +64,7 @@ export default function RealtimeViews({ websiteId, data, websites }) {
|
||||
pageviews
|
||||
.reduce((arr, { url, website_id }) => {
|
||||
if (url?.startsWith('/')) {
|
||||
if (!websiteId && websites.length > 0) {
|
||||
if (!websiteId && websites.length > 1) {
|
||||
url = `${getDomain(website_id)}${url}`;
|
||||
}
|
||||
const row = arr.find(({ x }) => x === url);
|
||||
|
||||
Reference in New Issue
Block a user