From 563a66b053dfbb189193f18775c15180eb36bd7d Mon Sep 17 00:00:00 2001 From: derek Date: Mon, 13 Jul 2020 00:55:26 -0400 Subject: ui.components.sort-select: always parse to number --- ui/src/components/sort-select.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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), }; } -- cgit v1.2.3