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%7Burl%7D/%22https:/image.com/%7B%60%24%7BghostArchiveUrl%7D/%7BfrontRss%7D?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), }; }