Fixed bug in countSubAlbums.
This commit is contained in:
parent
f7e31c2be7
commit
8b37d122b9
@ -211,11 +211,13 @@ contextMenu.photo = function(photoID, e) {
|
||||
|
||||
function countSubAlbums(photoIDs) {
|
||||
let count = 0
|
||||
for (i in photoIDs) {
|
||||
for (j in album.subjson.albums) {
|
||||
if (album.subjson.albums[j].id == photoIDs[i]) {
|
||||
count++
|
||||
break
|
||||
if (album.subjson) {
|
||||
for (i in photoIDs) {
|
||||
for (j in album.subjson.albums) {
|
||||
if (album.subjson.albums[j].id == photoIDs[i]) {
|
||||
count++
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user