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
fix looseleaf titles
awarm.space
3 months ago
8abceed5
2edb1768
+8
-4
4 changed files
expand all
collapse all
unified
split
app
(home-pages)
home
HomeLayout.tsx
page.tsx
looseleafs
LooseleafsLayout.tsx
page.tsx
+2
-1
app/(home-pages)/home/HomeLayout.tsx
···
134
134
...identity.permission_token_on_homepage.reduce(
135
135
(acc, tok) => {
136
136
let title =
137
137
-
tok.permission_tokens.leaflets_in_publications[0]?.title;
137
137
+
tok.permission_tokens.leaflets_in_publications[0]?.title ||
138
138
+
tok.permission_tokens.leaflets_to_documents[0]?.title;
138
139
if (title) acc[tok.permission_tokens.root_entity] = title;
139
140
return acc;
140
141
},
+2
-1
app/(home-pages)/home/page.tsx
···
29
29
...auth_res?.permission_token_on_homepage.reduce(
30
30
(acc, tok) => {
31
31
let title =
32
32
-
tok.permission_tokens.leaflets_in_publications[0]?.title;
32
32
+
tok.permission_tokens.leaflets_in_publications[0]?.title ||
33
33
+
tok.permission_tokens.leaflets_to_documents[0]?.title;
33
34
if (title) acc[tok.permission_tokens.root_entity] = title;
34
35
return acc;
35
36
},
+2
-1
app/(home-pages)/looseleafs/LooseleafsLayout.tsx
···
78
78
...identity.permission_token_on_homepage.reduce(
79
79
(acc, tok) => {
80
80
let title =
81
81
-
tok.permission_tokens.leaflets_in_publications[0]?.title;
81
81
+
tok.permission_tokens.leaflets_in_publications[0]?.title ||
82
82
+
tok.permission_tokens.leaflets_to_documents[0]?.title;
82
83
if (title) acc[tok.permission_tokens.root_entity] = title;
83
84
return acc;
84
85
},
+2
-1
app/(home-pages)/looseleafs/page.tsx
···
33
33
...auth_res?.permission_token_on_homepage.reduce(
34
34
(acc, tok) => {
35
35
let title =
36
36
-
tok.permission_tokens.leaflets_in_publications[0]?.title;
36
36
+
tok.permission_tokens.leaflets_in_publications[0]?.title ||
37
37
+
tok.permission_tokens.leaflets_to_documents[0]?.title;
37
38
if (title) acc[tok.permission_tokens.root_entity] = title;
38
39
return acc;
39
40
},