A null check fix to the previous commit

pull/232/head
Roman 10 years ago
parent 4b8c4a4669
commit a0d11ca6b2

@ -222,12 +222,15 @@ album = {
newTitle = (newTitle==="") ? "Untitled" : newTitle;
if (visible.album()) {
var id = albumIDs[0];
album.json.title = newTitle;
albums.json.content[id].title = newTitle;
view.album.title();
if (albums.json) {
var id = albumIDs[0];
albums.json.content[id].title = newTitle;
}
} else if (visible.albums()) {
albumIDs.forEach(function(id) {

Loading…
Cancel
Save