mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-14 00:14:03 +00:00
ui.components.sort-select: always parse to number
This commit is contained in:
parent
602993ac76
commit
563a66b053
1 changed files with 2 additions and 1 deletions
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 a new issue