From 64d0e15ada194fa535357226a3b7e1135a98cf8e Mon Sep 17 00:00:00 2001 From: Thomas Trompette Date: Mon, 29 Jan 2024 15:43:48 +0100 Subject: [PATCH] Put back timeline thread page size const (#3676) Put timeline thread page size const Co-authored-by: Thomas Trompette --- .../src/modules/activities/emails/components/EmailThreads.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/twenty-front/src/modules/activities/emails/components/EmailThreads.tsx b/packages/twenty-front/src/modules/activities/emails/components/EmailThreads.tsx index 97f85bf634..da03d3439f 100644 --- a/packages/twenty-front/src/modules/activities/emails/components/EmailThreads.tsx +++ b/packages/twenty-front/src/modules/activities/emails/components/EmailThreads.tsx @@ -4,6 +4,7 @@ import styled from '@emotion/styled'; import { useRecoilState } from 'recoil'; import { EmailThreadPreview } from '@/activities/emails/components/EmailThreadPreview'; +import { TIMELINE_THREADS_DEFAULT_PAGE_SIZE } from '@/activities/emails/constants/messaging.constants'; import { useEmailThread } from '@/activities/emails/hooks/useEmailThread'; import { getTimelineThreadsFromCompanyId } from '@/activities/emails/queries/getTimelineThreadsFromCompanyId'; import { getTimelineThreadsFromPersonId } from '@/activities/emails/queries/getTimelineThreadsFromPersonId'; @@ -67,7 +68,7 @@ export const EmailThreads = ({ ? { personId: entity.id } : { companyId: entity.id }), page: 1, - pageSize: 10, + pageSize: TIMELINE_THREADS_DEFAULT_PAGE_SIZE, } as GetTimelineThreadsFromPersonIdQueryVariables; const { data, loading, fetchMore, error } = useQuery(threadQuery, {