a tool for shared writing and social publishing
0
fork

Configure Feed

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

handle null record on homepage

+2 -2
+2 -2
app/home/Publications.tsx
··· 54 54 }; 55 55 56 56 function Publication(props: { uri: string; name: string; record: Json }) { 57 - let record = props.record as PubLeafletPublication.Record; 57 + let record = props.record as PubLeafletPublication.Record | null; 58 58 return ( 59 59 <Link 60 60 className="pubListItem w-full p-3 opaque-container rounded-lg! text-secondary text-center hover:no-underline flex flex-col gap-1 place-items-center transparent-outline outline-2 outline-offset-1 hover:outline-border basis-0 grow min-w-0" 61 61 href={`${getBasePublicationURL(props)}/dashboard`} 62 62 > 63 - {record.icon && ( 63 + {record?.icon && ( 64 64 <div 65 65 style={{ 66 66 backgroundRepeat: "no-repeat",