your personal website on atproto - mirror blento.app
25
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix standard site document card crash

Florian a5b0eeb4 a43707d6

+10 -5
+10 -5
src/lib/cards/content/StandardSiteDocumentListCard/index.ts
··· 29 29 30 30 if (!siteParts) continue; 31 31 32 - const publicationRecord = await getRecord({ 33 - did: siteParts.repo as `did:${string}:${string}`, 34 - collection: siteParts.collection!, 35 - rkey: siteParts.rkey 36 - }); 32 + let publicationRecord; 33 + try { 34 + publicationRecord = await getRecord({ 35 + did: siteParts.repo as `did:${string}:${string}`, 36 + collection: siteParts.collection!, 37 + rkey: siteParts.rkey 38 + }); 39 + } catch { 40 + continue; 41 + } 37 42 38 43 if (!publicationRecord.value) continue; 39 44 const { url } = publicationRecord.value;