Skip to content

Commit

Permalink
fix: Find pallets with index 0 (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
emostov committed Oct 15, 2020
1 parent 9304428 commit ee0a048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/pallets/PalletsStorageItemService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class PalletsStorageItemService extends AbstractService {
}
}

if (!palletMeta || !palletIdx) {
if (!palletMeta || palletIdx === undefined || palletIdx < 0) {
throw new InternalServerError(
`Could not find pallet ("${palletId}")in metadata.`
);
Expand Down

0 comments on commit ee0a048

Please sign in to comment.