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

fix: Find pallets with index 0 #321

Merged
merged 1 commit into from
Oct 15, 2020
Merged

fix: Find pallets with index 0 #321

merged 1 commit into from
Oct 15, 2020

Conversation

emostov
Copy link
Contributor

@emostov emostov commented Oct 15, 2020

Previously in PalletStorageItemService.findPalletMeta, we checked if the found index was a falsey value (!palledIdx), however this check will throw on 0 since it is a falsey value in JS; meaning the user would get an error when trying to retrieve the first pallet. This PR introduces a fix by explicitly checking for undefined or an invalid number.

@emostov emostov merged commit ee0a048 into master Oct 15, 2020
@niklasad1 niklasad1 deleted the zeke-system branch October 16, 2020 05:47
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.

4 participants