We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b4c02c commit 5b15ff7Copy full SHA for 5b15ff7
src/Options.tsx
@@ -115,7 +115,10 @@ const Options: React.FC<OptionsProps> = ({
115
const {
116
options: showSizeChangerOptions,
117
className: showSizeChangerClassName,
118
- } = typeof showSizeChanger === 'object' ? showSizeChanger : {};
+ } =
119
+ typeof showSizeChanger === 'object'
120
+ ? showSizeChanger
121
+ : ({} as SelectProps);
122
const options = showSizeChangerOptions
123
? undefined
124
: getPageSizeOptions().map((opt, i) => (
0 commit comments