diff --git a/src/scripts/album.js b/src/scripts/album.js index e8e43ad..dd48b04 100644 --- a/src/scripts/album.js +++ b/src/scripts/album.js @@ -42,9 +42,7 @@ album.getID = function() { album.getParent = function() { - let id = album.json.id - - if (album.isSmartID(id)===true || album.json.parent==0) return '' + if (album.json==null || album.isSmartID(album.json.id)===true || album.json.parent==0) return '' return album.json.parent