[web-src] Fix index link for unavailable release year

This commit is contained in:
chme 2020-10-11 08:48:00 +02:00
parent 6fcdab08ee
commit 7dccee9407

View File

@ -20,7 +20,7 @@ export default class Albums {
if (this.options.sort === 'Recently added') {
return album.time_added.substring(0, 4)
} else if (this.options.sort === 'Recently released') {
return album.date_released ? album.date_released.substring(0, 4) : 'n/a'
return album.date_released ? album.date_released.substring(0, 4) : '0000'
}
return album.name_sort.charAt(0).toUpperCase()
}