skip event count in event list
This commit is contained in:
@@ -84,6 +84,7 @@ function EventList({ data, count }: EventListProps) {
|
||||
))}
|
||||
</div>
|
||||
<Pagination
|
||||
size="sm"
|
||||
className="mt-2"
|
||||
cursor={cursor}
|
||||
setCursor={setCursor}
|
||||
|
||||
@@ -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} />;
|
||||
|
||||
Reference in New Issue
Block a user