tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
filter docs better
awarm.space
3 months ago
e31333a4
94a96af9
+2
-4
1 changed file
expand all
collapse all
unified
split
app
(home-pages)
home
HomeLayout.tsx
+2
-4
app/(home-pages)/home/HomeLayout.tsx
···
299
299
({ token: leaflet, archived: archived }) => {
300
300
let published = !!leaflet.leaflets_in_publications?.find((l) => l.doc);
301
301
let drafts = !!leaflet.leaflets_in_publications?.length && !published;
302
302
-
let docs = !leaflet.leaflets_in_publications?.length;
302
302
+
let docs = !leaflet.leaflets_in_publications?.length && !archived;
303
303
let templates = !!allTemplates.find((t) => t.id === leaflet.id);
304
304
// If no filters are active, show all
305
305
if (
···
314
314
return (
315
315
(filter.drafts && drafts) ||
316
316
(filter.published && published) ||
317
317
-
(filter.docs &&
318
318
-
docs &&
319
319
-
(archived === false || archived === null || archived || undefined)) ||
317
317
+
(filter.docs && docs) ||
320
318
(filter.templates && templates) ||
321
319
(filter.archived && archived)
322
320
);