Skip to content

Commit

Permalink
Fix null check for categories
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmardefago committed Aug 10, 2021
1 parent 01adecc commit b0d4e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mappings/metadataHelpers.template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function fetchSubgraphMetadata(subgraph: Subgraph, ipfsHash: string): Sub
subgraph.website = jsonToString(data.get('website'))
let categories = data.get('categories')

if(categories != null) {
if(!categories.isNull()) {
let categoriesArray = categories.toArray()

for(let i = 0; i < categoriesArray.length; i++) {
Expand Down

0 comments on commit b0d4e26

Please sign in to comment.