a tool for shared writing and social publishing

fix looseleaf titles

+8 -4
+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 - tok.permission_tokens.leaflets_in_publications[0]?.title; 137 + tok.permission_tokens.leaflets_in_publications[0]?.title || 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 - tok.permission_tokens.leaflets_in_publications[0]?.title; 32 + tok.permission_tokens.leaflets_in_publications[0]?.title || 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 - tok.permission_tokens.leaflets_in_publications[0]?.title; 81 + tok.permission_tokens.leaflets_in_publications[0]?.title || 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 - tok.permission_tokens.leaflets_in_publications[0]?.title; 36 + tok.permission_tokens.leaflets_in_publications[0]?.title || 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 },