tangled
alpha
login
or
join now
flo-bit.dev
/
blento
21
fork
atom
your personal website on atproto - mirror
blento.app
21
fork
atom
overview
issues
pulls
pipelines
fix semble collections
Florian
1 week ago
811eaa57
9def5fd4
+6
-2
1 changed file
expand all
collapse all
unified
split
src
lib
cards
social
SembleCollectionCard
index.ts
+6
-2
src/lib/cards/social/SembleCollectionCard/index.ts
···
42
42
collection: 'network.cosmik.collection',
43
43
rkey: collectionRkey
44
44
}).catch(() => undefined),
45
45
-
listRecords({ did, collection: 'network.cosmik.collectionLink' }).catch(() => []),
46
46
-
listRecords({ did, collection: 'network.cosmik.card' }).catch(() => [])
45
45
+
listRecords({ did, collection: 'network.cosmik.collectionLink', limit: 0 }).catch(() => []),
46
46
+
listRecords({ did, collection: 'network.cosmik.card', limit: 0 }).catch(() => [])
47
47
]);
48
48
+
49
49
+
console.log(allLinks);
48
50
49
51
if (!collection) return undefined;
50
52
···
53
55
.filter((link: any) => link.value.collection?.uri === collectionUri)
54
56
.map((link: any) => link.value.card?.uri)
55
57
);
58
58
+
59
59
+
console.log(linkedCardUris);
56
60
57
61
const cards: SembleCard[] = allCards
58
62
.filter((card: any) => linkedCardUris.has(card.uri))