mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-14 08:15:02 -05:00
[web-src] Fix index link for unavailable release year
This commit is contained in:
parent
6fcdab08ee
commit
7dccee9407
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user