Skip to content

Commit

Permalink
fix: fix length check
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Ixo committed May 13, 2024
1 parent d7cdd77 commit 0949d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/claims_handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const getAllClaimTypesFromCellnode = async () => {
export const getClaimTypesFromCellnode = async (collectionID: string) => {
// first get all claims with type null
const collectionClaims = await getCollectionClaimsTypeNull(collectionID, 150);
if (collectionClaims.length < 1) return;
if (collectionClaims && collectionClaims.length < 1) return;
// get Collection Entity to get Collection Cellnode Service URI
const collectionEntity = await getCollectionEntity(collectionID);
if (!collectionEntity) return;
Expand Down

0 comments on commit 0949d30

Please sign in to comment.