mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-09-10 08:28:51 -06:00
ui.components.sort-select: always parse to number
This commit is contained in:
parent
602993ac76
commit
563a66b053
3
ui/src/components/sort-select.tsx
vendored
3
ui/src/components/sort-select.tsx
vendored
@ -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),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user