diff options
author | derek <wwsage@gmail.com> | 2020-07-14 01:13:43 -0400 |
---|---|---|
committer | derek <wwsage@gmail.com> | 2020-07-14 01:13:43 -0400 |
commit | ef62f4698a62e996bcd54faa1f360eff89b8ac4b (patch) | |
tree | ce5d6397d6ee1134fd58f23e2088b932da9ebfb0 /ui/src/components/sort-select.tsx | |
parent | 563a66b053dfbb189193f18775c15180eb36bd7d (diff) |
ui.components: fix ts types, move user pagination to user details
Diffstat (limited to 'ui/src/components/sort-select.tsx')
-rw-r--r-- | ui/src/components/sort-select.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/src/components/sort-select.tsx b/ui/src/components/sort-select.tsx index 736cbb30..33d65819 100644 --- a/ui/src/components/sort-select.tsx +++ b/ui/src/components/sort-select.tsx @@ -23,10 +23,9 @@ export class SortSelect extends Component<SortSelectProps, SortSelectState> { this.state = this.emptyState; } - static getDerivedStateFromProps(props) { - console.log('sort-select', props); + static getDerivedStateFromProps(props: any): SortSelectState { return { - sort: Number(props.sort), + sort: props.sort, }; } |