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> </div>
<Pagination <Pagination
size="sm"
className="mt-2" className="mt-2"
cursor={cursor} cursor={cursor}
setCursor={setCursor} setCursor={setCursor}

View File

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