Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

add profileId to event-list (fix #24)

Carl-Gerhard Lindesvärd51bb0c969d28
diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/events/event-list/index.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/events/event-list/index.tsx
index 79c093595..46ae9dc8a 100644
--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/events/event-list/index.tsx
+++ b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/events/event-list/index.tsx
@@ -10,6 +10,7 @@ type Props = {
projectId: string;
filters?: IChartEventFilter[];
eventNames?: string[];
+ profileId?: string;
};
const EventListServer = async ({
@@ -17,6 +18,7 @@ const EventListServer = async ({
projectId,
eventNames,
filters,
+ profileId,
}: Props) => {
const [events, count] = await Promise.all([
getEventList({
@@ -25,11 +27,13 @@ const EventListServer = async ({
take: 50,
events: eventNames,
filters,
+ profileId,
}),
getEventsCount({
projectId,
events: eventNames,
filters,
+ profileId,
}),
]);