Skip to content

Commit

Permalink
fix: injectedGlobalOptions could be undefined in certain cases. #182
Browse files Browse the repository at this point in the history
  • Loading branch information
John60676 committed Dec 10, 2024
1 parent 5973e83 commit f5d0050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usePagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function usePagination<R, P extends unknown[] = any>(
const { currentKey, pageSizeKey, totalKey, totalPageKey } = merge(
defaultPaginationOptions,
getGlobalOptions().pagination || {},
injectedGlobalOptions.pagination || {},
injectedGlobalOptions?.pagination || {},
pagination || {},
) as PaginationType;

Expand Down

0 comments on commit f5d0050

Please sign in to comment.