Skip to content

Commit f5d0050

Browse files
committed
fix: injectedGlobalOptions could be undefined in certain cases. #182
1 parent 5973e83 commit f5d0050

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/usePagination.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function usePagination<R, P extends unknown[] = any>(
5858
const { currentKey, pageSizeKey, totalKey, totalPageKey } = merge(
5959
defaultPaginationOptions,
6060
getGlobalOptions().pagination || {},
61-
injectedGlobalOptions.pagination || {},
61+
injectedGlobalOptions?.pagination || {},
6262
pagination || {},
6363
) as PaginationType;
6464

0 commit comments

Comments
 (0)