Update episode row to show filename when sorting by filename

This commit is contained in:
advplyr 2025-02-28 17:42:56 -06:00
parent 007691ffe5
commit 828d5d2afc
2 changed files with 11 additions and 4 deletions

View file

@ -180,7 +180,7 @@ export default {
let bValue
if (this.sortKey.includes('.')) {
const getNestedValue = (ob, s) => s.split('.').reduce((o, k) => o?.[k], ob);
const getNestedValue = (ob, s) => s.split('.').reduce((o, k) => o?.[k], ob)
aValue = getNestedValue(a, this.sortKey)
bValue = getNestedValue(b, this.sortKey)
} else {
@ -454,7 +454,8 @@ export default {
propsData: {
index,
libraryItemId: this.libraryItem.id,
episode: this.episodesList[index]
episode: this.episodesList[index],
sortKey: this.sortKey
},
created() {
this.$on('selected', (payload) => {