Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated albumId check #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Mike-Loffland
Copy link

Added typeof check on pg.albumId !== 'undefined'

I was attempting to list all the albums on my Picasa account. But, since pg.albumId was coming through as "undefined" it was passing the !==null check and attempting to run pg.loadSingleAlbum instead of pg.loadAlbumData().

Fixed.

Thanks Mang!

Added typeof check on pg.albumId !== 'undefined'

I was attempting to list all the albums on my Picasa account. But, since pg.albumId was coming through as "undefined" it was passing the !==null check and attempting to run pg.loadSingleAlbum instead of pg.loadAlbumData().

Fixed.

Thanks Mang!
@Mike-Loffland
Copy link
Author

An alternative fix is to initialize albumID to null... Allowing the existing code to function as expected.

@Mike-Loffland
Copy link
Author

bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant