diff --git a/src/Options.tsx b/src/Options.tsx index f5ff92a0..8f6fb545 100644 --- a/src/Options.tsx +++ b/src/Options.tsx @@ -115,7 +115,10 @@ const Options: React.FC = ({ const { options: showSizeChangerOptions, className: showSizeChangerClassName, - } = typeof showSizeChanger === 'object' ? showSizeChanger : {}; + } = + typeof showSizeChanger === 'object' + ? showSizeChanger + : ({} as SelectProps); const options = showSizeChangerOptions ? undefined : getPageSizeOptions().map((opt, i) => (