From 811eaa577f4f3723d026d3410950ae89f4d1152a Mon Sep 17 00:00:00 2001 From: Florian <45694132+flo-bit@users.noreply.github.com> Date: Sat, 28 Feb 2026 22:32:20 +0100 Subject: [PATCH] fix semble collections --- src/lib/cards/social/SembleCollectionCard/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) => {