diff options
author | derek <wwsage@gmail.com> | 2020-07-13 00:55:26 -0400 |
---|---|---|
committer | derek <wwsage@gmail.com> | 2020-07-13 20:14:01 -0400 |
commit | 563a66b053dfbb189193f18775c15180eb36bd7d (patch) | |
tree | 74816f25fca95c3233826a7618705548b1a142da | |
parent | 602993ac761e1d1bacbb0acb8d1fdc3625828acf (diff) |
ui.components.sort-select: always parse to number
-rw-r--r-- | ui/src/components/sort-select.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
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<SortSelectProps, SortSelectState> { } static getDerivedStateFromProps(props) { + console.log('sort-select', props); return { - sort: props.sort, + sort: Number(props.sort), }; } |