Removing custom sorter, we now use Lodash orderBy, one less responsibility

This commit is contained in:
James Barnsley
2020-11-08 20:49:48 +13:00
parent d3ad4ac28b
commit 6c0390f7b6
23 changed files with 450 additions and 568 deletions

View File

@ -274,11 +274,11 @@ class LibraryPlaylists extends React.Component {
label: i18n('fields.filters.editable'),
},
{
value: 'owner.id',
value: 'owner',
label: i18n('fields.filters.owner'),
},
{
value: 'tracks_total',
value: 'tracks',
label: i18n('fields.filters.tracks'),
},
{
@ -288,7 +288,7 @@ class LibraryPlaylists extends React.Component {
];
const options = (
<span>
<>
<FilterField
initialValue={filter}
handleChange={(value) => this.setState({ filter: value })}
@ -337,7 +337,7 @@ class LibraryPlaylists extends React.Component {
<Icon name="add_box" />
<I18n path="actions.add" />
</Button>
</span>
</>
);
return (