From: derek Date: Mon, 13 Jul 2020 04:55:26 +0000 (-0400) Subject: ui.components.sort-select: always parse to number X-Git-Url: http://these/git/%22%7Bauthor_url%7D/readmes/static/git-favicon.png?a=commitdiff_plain;h=563a66b053dfbb189193f18775c15180eb36bd7d;p=lemmy.git ui.components.sort-select: always parse to number --- diff --git a/ui/src/components/sort-select.tsx b/ui/src/components/sort-select.tsx index 22942d1b..736cbb30 100644 --- a/ui/src/components/sort-select.tsx +++ b/ui/src/components/sort-select.tsx @@ -24,8 +24,9 @@ export class SortSelect extends Component { } static getDerivedStateFromProps(props) { + console.log('sort-select', props); return { - sort: props.sort, + sort: Number(props.sort), }; }