Skip to content

Commit

Permalink
fix tsc errors
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Sep 23, 2024
1 parent 1b4c02c commit 5b15ff7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ const Options: React.FC<OptionsProps> = ({
const {
options: showSizeChangerOptions,
className: showSizeChangerClassName,
} = typeof showSizeChanger === 'object' ? showSizeChanger : {};
} =
typeof showSizeChanger === 'object'
? showSizeChanger
: ({} as SelectProps);
const options = showSizeChangerOptions
? undefined
: getPageSizeOptions().map((opt, i) => (
Expand Down

0 comments on commit 5b15ff7

Please sign in to comment.