mirror of
https://github.com/romancm/gamebrary
synced 2024-11-23 11:43:07 +00:00
refactor autoSortEnabled in game list
This commit is contained in:
parent
e20eac8856
commit
096c3ab2a7
1 changed files with 1 additions and 7 deletions
|
@ -146,13 +146,7 @@ export default {
|
|||
},
|
||||
|
||||
autoSortEnabled() {
|
||||
const { settings } = this.list;
|
||||
|
||||
if (!settings) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return ['sortByName', 'sortByRating', 'sortByReleaseDate', 'sortByProgress'].includes(settings.sortOrder);
|
||||
return ['sortByName', 'sortByRating', 'sortByReleaseDate', 'sortByProgress'].includes(this.list?.settings?.sortOrder);
|
||||
},
|
||||
|
||||
sortedGames() {
|
||||
|
|
Loading…
Reference in a new issue