Fixed bug in album.setTitle.

This commit is contained in:
Nils Asmussen 2016-07-30 15:04:03 +02:00
parent ffef7e3d8f
commit f7e31c2be7

View File

@ -340,8 +340,11 @@ album.setTitle = function(albumIDs) {
if (albums.json || album.subjson) {
albumIDs.forEach(function(id) {
albums.getByID(id).title = newTitle
view.album.content.title(id)
let a = albums.getByID(id)
if (a) {
a.title = newTitle
view.album.content.title(id)
}
})
}