refactor autoSortEnabled in game list

This commit is contained in:
Gamebrary 2022-05-18 18:58:47 -07:00
parent e20eac8856
commit 096c3ab2a7

View file

@ -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() {