From f7e31c2be7b7e4ae6a6eb24c17e5fac96ee5e946 Mon Sep 17 00:00:00 2001 From: Nils Asmussen Date: Sat, 30 Jul 2016 15:04:03 +0200 Subject: [PATCH] Fixed bug in album.setTitle. --- src/scripts/album.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/scripts/album.js b/src/scripts/album.js index e946b03..66fe9b2 100644 --- a/src/scripts/album.js +++ b/src/scripts/album.js @@ -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) + } }) }