Added Polish language. Bug fixes.
This commit is contained in:
@@ -88,7 +88,7 @@ export default function RealtimeLog({ data, websites }) {
|
||||
}
|
||||
|
||||
function getWebsite({ website_id }) {
|
||||
return websites.find(n => n.website_id === website_id)?.name;
|
||||
return websites.find(n => n.website_id === website_id);
|
||||
}
|
||||
|
||||
function getDetail({
|
||||
@@ -111,7 +111,7 @@ export default function RealtimeLog({ data, websites }) {
|
||||
);
|
||||
}
|
||||
if (view_id) {
|
||||
const domain = getWebsite({ website_id });
|
||||
const domain = getWebsite({ website_id })?.domain;
|
||||
return (
|
||||
<a
|
||||
className={styles.link}
|
||||
@@ -161,7 +161,7 @@ export default function RealtimeLog({ data, websites }) {
|
||||
<Icon className={styles.icon} icon={getIcon(row)} />
|
||||
{getDetail(row)}
|
||||
</div>
|
||||
<div className={styles.website}>{getWebsite(row)}</div>
|
||||
{websites.length > 0 && <div className={styles.website}>{getWebsite(row)?.domain}</div>}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -55,7 +55,7 @@ export default function RealtimeViews({ websiteId, data, websites }) {
|
||||
pageviews
|
||||
.reduce((arr, { url, website_id }) => {
|
||||
if (url?.startsWith('/')) {
|
||||
if (!websiteId) {
|
||||
if (!websiteId && websites.length > 0) {
|
||||
url = `${getDomain(website_id)}${url}`;
|
||||
}
|
||||
const row = arr.find(({ x }) => x === url);
|
||||
|
||||
Reference in New Issue
Block a user