A null check fix to the previous commit
This commit is contained in:
parent
4b8c4a4669
commit
a0d11ca6b2
@ -222,12 +222,15 @@ album = {
|
|||||||
newTitle = (newTitle==="") ? "Untitled" : newTitle;
|
newTitle = (newTitle==="") ? "Untitled" : newTitle;
|
||||||
|
|
||||||
if (visible.album()) {
|
if (visible.album()) {
|
||||||
var id = albumIDs[0];
|
|
||||||
|
|
||||||
album.json.title = newTitle;
|
album.json.title = newTitle;
|
||||||
albums.json.content[id].title = newTitle;
|
|
||||||
view.album.title();
|
view.album.title();
|
||||||
|
|
||||||
|
if (albums.json) {
|
||||||
|
var id = albumIDs[0];
|
||||||
|
albums.json.content[id].title = newTitle;
|
||||||
|
}
|
||||||
|
|
||||||
} else if (visible.albums()) {
|
} else if (visible.albums()) {
|
||||||
|
|
||||||
albumIDs.forEach(function(id) {
|
albumIDs.forEach(function(id) {
|
||||||
|
Loading…
Reference in New Issue
Block a user