diff --git a/package.json b/package.json index 65f16687..21c78d47 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "type": "git", "url": "https://github.com/umami-software/umami.git" }, + "type": "module", "scripts": { "dev": "next dev", "dev-turbo": "next dev -p 3001 --turbopack", diff --git a/src/app/(main)/websites/[websiteId]/WebsiteTabs.tsx b/src/app/(main)/websites/[websiteId]/WebsiteTabs.tsx index b6cb7849..1d8eacaf 100644 --- a/src/app/(main)/websites/[websiteId]/WebsiteTabs.tsx +++ b/src/app/(main)/websites/[websiteId]/WebsiteTabs.tsx @@ -88,15 +88,13 @@ export function WebsiteTabs({ websiteId }: { websiteId: string }) { }, ]; - const selected = links - ? links.find(({ path }) => path && pathname.endsWith(path))?.id - : 'overview'; + const selected = links.find(({ path }) => path && pathname.endsWith(path))?.id || 'overview'; return ( {links.map(({ id, label, icon, path }) => { return ( - + - + {(row: any) => ( )} - + {(row: any) => { return ( - <> + {row.eventName ? : } {formatMessage(row.eventName ? labels.triggeredEvent : labels.viewedPage)} {row.eventName || row.urlPath} - + ); }} - + {(row: any) => formatTimezoneDate(row.createdAt, 'PPPpp')} diff --git a/src/app/(main)/websites/[websiteId]/sessions/SessionsTable.tsx b/src/app/(main)/websites/[websiteId]/sessions/SessionsTable.tsx index 4db25fbc..3af17074 100644 --- a/src/app/(main)/websites/[websiteId]/sessions/SessionsTable.tsx +++ b/src/app/(main)/websites/[websiteId]/sessions/SessionsTable.tsx @@ -12,15 +12,15 @@ export function SessionsTable({ data = [] }: { data: any[]; showDomain?: boolean return ( - + {(row: any) => ( )} - - + + {(row: any) => (