diff --git a/src/lib/cards/social/SembleCollectionCard/index.ts b/src/lib/cards/social/SembleCollectionCard/index.ts index 78806d66..d8216b9f 100644 --- a/src/lib/cards/social/SembleCollectionCard/index.ts +++ b/src/lib/cards/social/SembleCollectionCard/index.ts @@ -42,10 +42,12 @@ async function loadCollectionData( collection: 'network.cosmik.collection', rkey: collectionRkey }).catch(() => undefined), - listRecords({ did, collection: 'network.cosmik.collectionLink' }).catch(() => []), - listRecords({ did, collection: 'network.cosmik.card' }).catch(() => []) + listRecords({ did, collection: 'network.cosmik.collectionLink', limit: 0 }).catch(() => []), + listRecords({ did, collection: 'network.cosmik.card', limit: 0 }).catch(() => []) ]); + console.log(allLinks); + if (!collection) return undefined; const linkedCardUris = new Set( @@ -54,6 +56,8 @@ async function loadCollectionData( .map((link: any) => link.value.card?.uri) ); + console.log(linkedCardUris); + const cards: SembleCard[] = allCards .filter((card: any) => linkedCardUris.has(card.uri)) .map((card: any) => {