diff --git a/picker-starter/src/components/ItemPicker/utils/mixin/showCursorPagination.ts b/picker-starter/src/components/ItemPicker/utils/mixin/showCursorPagination.ts index 196d628..2c828c9 100644 --- a/picker-starter/src/components/ItemPicker/utils/mixin/showCursorPagination.ts +++ b/picker-starter/src/components/ItemPicker/utils/mixin/showCursorPagination.ts @@ -2,5 +2,4 @@ import { State } from '../state/types/State' import { isCursorPaginatedResult } from '@/core' export const showCursorPagination = (state: State): boolean => - isCursorPaginatedResult(state.pageInfo) && - typeof state.pageInfo.endCursor !== 'undefined' + isCursorPaginatedResult(state.pageInfo) && state.pageInfo.hasNextPage