skip event count in event list
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
@@ -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} />;
|
||||||
|
|||||||
Reference in New Issue
Block a user