From 55fedf16409658176389006c1b40de2d286860b4 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 4 Apr 2018 15:09:06 -0400 Subject: [PATCH] fix: add back newestFirst/oldestFirst sorting to published/downloaded pages --- src/renderer/component/fileList/view.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/renderer/component/fileList/view.jsx b/src/renderer/component/fileList/view.jsx index 88037eb19..3f31e8b0f 100644 --- a/src/renderer/component/fileList/view.jsx +++ b/src/renderer/component/fileList/view.jsx @@ -44,6 +44,8 @@ class FileList extends React.PureComponent { sortBy: 'dateNew', }; + (this: any).handleSortChanged = this.handleSortChanged.bind(this); + this.sortFunctions = { dateNew: fileInfos => this.props.sortByHeight @@ -180,7 +182,8 @@ class FileList extends React.PureComponent { value={sortBy} onChange={this.handleSortChanged} > - + + )}