ui.components.sort-select: always parse to number

This commit is contained in:
derek 2020-07-13 00:55:26 -04:00
parent 602993ac76
commit 563a66b053

View File

@ -24,8 +24,9 @@ export class SortSelect extends Component<SortSelectProps, SortSelectState> {
} }
static getDerivedStateFromProps(props) { static getDerivedStateFromProps(props) {
console.log('sort-select', props);
return { return {
sort: props.sort, sort: Number(props.sort),
}; };
} }