Skip to content

Commit

Permalink
communities-ui: fix subcommunities search and display
Browse files Browse the repository at this point in the history
  • Loading branch information
slint committed Oct 18, 2024
1 parent be55c15 commit 42d9a71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class CommunityItem extends Component {
<ListItem>
<ListContent>
<ListHeader as="a" href={requestLinkSelf}>
<h4 className="theme-primary-text-direct">{title}</h4>
<h4 className="theme-primary-text-direct truncated">{title}</h4>
</ListHeader>
<ListDescription>{awardAcronym}</ListDescription>
</ListContent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ const defaultProps = {
isInitialSubmission: true,
apiConfigs: {
allCommunities: {
initialQueryState: { size: 5, page: 1, sortBy: "newest" },
initialQueryState: { size: 6, page: 1, sortBy: "newest" },
searchApi: {
axios: {
url: "/api/communities",
url: "/api/communities/eu/subcommunities",
headers: { Accept: "application/vnd.inveniordm.v1+json" },
},
},
appId: "ReactInvenioDeposit.CommunitySelectionSearch.recentCommunities",
toggleText: "Search in all communities",
},
myCommunities: {
initialQueryState: { size: 5, page: 1, sortBy: "bestmatch" },
initialQueryState: { size: 6, page: 1, sortBy: "bestmatch" },
searchApi: {
axios: {
url: "/api/user/communities",
Expand Down

0 comments on commit 42d9a71

Please sign in to comment.