diff --git a/src/components/ExperienceList/ExperienceListRightBar.tsx b/src/components/ExperienceList/ExperienceListRightBar.tsx index 210f0542d..a0e00f1c1 100644 --- a/src/components/ExperienceList/ExperienceListRightBar.tsx +++ b/src/components/ExperienceList/ExperienceListRightBar.tsx @@ -93,7 +93,7 @@ export const ExperienceListRightBar: React.FC = props => { onSubscribe={onSubscribe} onClone={onClone} menuDrawer={menuDrawer} - postCount={item.newPostCount !== 0} + postCount={false} /> ))} diff --git a/src/components/UserMenu/UserMenu.tsx b/src/components/UserMenu/UserMenu.tsx index c0eb3621e..295e2be7d 100644 --- a/src/components/UserMenu/UserMenu.tsx +++ b/src/components/UserMenu/UserMenu.tsx @@ -59,7 +59,7 @@ export const UserMenu: React.FC = props => { tabs={tabs} selected={activeTab} - scrollButtons="auto" + scrollButtons="on" variant="scrollable" onChangeTab={setActiveTab} size="small" diff --git a/src/lib/api/post.ts b/src/lib/api/post.ts index d24733ef4..227b72e24 100644 --- a/src/lib/api/post.ts +++ b/src/lib/api/post.ts @@ -151,6 +151,16 @@ export const getPost = async ( return post.createdBy === fields.owner; }); } + if (data.data.length === 0 && params.experienceId) { + const { data } = await MyriadAPI().request({ + url: `/experience/${params.experienceId}/posts`, + method: 'GET', + params: { + filter: filterParams, + }, + }); + return data; + } return data; };