mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-19 03:25:29 +00: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