a tool for shared writing and social publishing

fixed issue where archived items turned up in filtered home

+7 -5
+6 -4
app/(home-pages)/home/HomeLayout.tsx
··· 289 289 !!leaflet.leaflets_to_documents?.find((l) => l.document); 290 290 let drafts = !!leaflet.leaflets_in_publications?.length && !published; 291 291 let docs = !leaflet.leaflets_in_publications?.length && !archived; 292 - // If no filters are active, show all 292 + 293 + // If no filters are active, show everything that is not archived 293 294 if ( 294 295 !filter.drafts && 295 296 !filter.published && ··· 298 299 ) 299 300 return archived === false || archived === null || archived == undefined; 300 301 302 + //if a filter is on, return itemsd of that filter that are also NOT archived 301 303 return ( 302 - (filter.drafts && drafts) || 303 - (filter.published && published) || 304 - (filter.docs && docs) || 304 + (filter.drafts && drafts && !archived) || 305 + (filter.published && published && !archived) || 306 + (filter.docs && docs && !archived) || 305 307 (filter.archived && archived) 306 308 ); 307 309 },
+1 -1
app/(home-pages)/home/LeafletList/LeafletOptions.tsx
··· 108 108 await archivePost(tokenId); 109 109 toaster({ 110 110 content: ( 111 - <div className="font-bold flex gap-2"> 111 + <div className="font-bold flex gap-2 items-center"> 112 112 Archived {itemType}! 113 113 <ButtonTertiary 114 114 className="underline text-accent-2!"