diff --git a/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordShowPagePagination.ts b/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordShowPagePagination.ts index 0590a26164e7..bb7ebf7001a1 100644 --- a/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordShowPagePagination.ts +++ b/packages/twenty-front/src/modules/object-record/record-show/hooks/useRecordShowPagePagination.ts @@ -62,7 +62,10 @@ export const useRecordShowPagePagination = ( useFindManyRecords({ skip: loadingCursor, fetchPolicy: 'network-only', - filter, + filter: { + ...filter, + id: { neq: objectRecordId }, + }, orderBy, cursorFilter: isNonEmptyString(cursorFromRequest) ? { @@ -81,7 +84,10 @@ export const useRecordShowPagePagination = ( const { loading: loadingRecordAfter, records: recordsAfter } = useFindManyRecords({ skip: loadingCursor, - filter, + filter: { + ...filter, + id: { neq: objectRecordId }, + }, fetchPolicy: 'network-only', orderBy, cursorFilter: cursorFromRequest