Fixed bug in album.setTitle.

pull/581/head
Nils Asmussen 8 years ago
parent ffef7e3d8f
commit f7e31c2be7

@ -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)
}
})
}

Loading…
Cancel
Save