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

pull/959/head
derek 2020-07-13 00:55:26 -04:00
parent 602993ac76
commit 563a66b053
1 changed files with 2 additions and 1 deletions

View File

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