diff options
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, }; } |