mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 08:37:13 +01:00
Fix websites check.
This commit is contained in:
parent
52456429f6
commit
1e8c1d0d18
3 changed files with 6 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue