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 15092daba..0909fcf78 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 @@ -115,7 +115,7 @@ export const useRecordShowPagePagination = ( const { state } = useLocation(); - const cursorFromIndexPage = state.cursor; + const cursorFromIndexPage = state?.cursor; const { loading: loadingCurrentRecord, pageInfo: currentRecordsPageInfo } = useFindManyRecords({