From: Dessalines Date: Sun, 2 Aug 2020 14:33:14 +0000 (-0400) Subject: Fix user settings sort not working. Fixes #1050 X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%22https:/hacktivis.me/%7Brss%7D?a=commitdiff_plain;h=fbd9adb135c3f54444c132066a51484681e0ee25;p=lemmy.git Fix user settings sort not working. Fixes #1050 --- 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