skip event count in event list

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-08-12 22:37:46 +02:00
parent 64d3a59722
commit fdb3737659
2 changed files with 3 additions and 7 deletions

View File

@@ -84,6 +84,7 @@ function EventList({ data, count }: EventListProps) {
))}
</div>
<Pagination
size="sm"
className="mt-2"
cursor={cursor}
setCursor={setCursor}

View File

@@ -20,7 +20,8 @@ const EventListServer = async ({
filters,
profileId,
}: Props) => {
const [events, count] = await Promise.all([
const count = Infinity;
const [events] = await Promise.all([
getEventList({
cursor,
projectId,
@@ -29,12 +30,6 @@ const EventListServer = async ({
filters,
profileId,
}),
getEventsCount({
projectId,
events: eventNames,
filters,
profileId,
}),
]);
return <EventList data={events} count={count} />;