From fbd9adb135c3f54444c132066a51484681e0ee25 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 2 Aug 2020 10:33:14 -0400 Subject: [PATCH] Fix user settings sort not working. Fixes #1050 --- ui/src/components/sort-select.tsx | 2 +- ui/src/components/user.tsx | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/ui/src/components/sort-select.tsx b/ui/src/components/sort-select.tsx index 12dcb4cb..8d0b29a3 100644 --- a/ui/src/components/sort-select.tsx +++ b/ui/src/components/sort-select.tsx @@ -65,6 +65,6 @@ export class SortSelect extends Component { } handleSortChange(i: SortSelect, event: any) { - i.props.onChange(event.target.value); + i.props.onChange(Number(event.target.value)); } } diff --git a/ui/src/components/user.tsx b/ui/src/components/user.tsx index d4e689c8..8f0b5178 100644 --- a/ui/src/components/user.tsx +++ b/ui/src/components/user.tsx @@ -152,9 +152,6 @@ export class User extends Component { this.handleUserSettingsListingTypeChange = this.handleUserSettingsListingTypeChange.bind( this ); - this.handleUserSettingsListingTypeChange = this.handleUserSettingsListingTypeChange.bind( - this - ); this.handlePageChange = this.handlePageChange.bind(this); this.handleUserSettingsBioChange = this.handleUserSettingsBioChange.bind( this -- 2.44.1