Skip to content

Commit b9ff0f5

Browse files
Hide cognitive and blockchain from dropdown filter
1 parent e5a0e40 commit b9ff0f5

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

src/server/tc-communities/blockchain/metadata.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"communityName": "Blockchain Community",
1010
"groupIds": ["20000010"],
1111
"hideSearch": true,
12+
"hideFilter": true,
1213
"logos": [{
1314
"img": "/community-app-assets/themes/blockchain/logo_topcoder_with_name.svg",
1415
"url": "https://www.topcoder.com"

src/server/tc-communities/cognitive/metadata.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"url": "https://www.topcoder.com"
1717
}],
1818
"hideSearch": true,
19+
"hideFilter": true,
1920
"menuItems": [
2021
{
2122
"title": "Home",

src/server/tc-communities/tco19/metadata.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"challengeFilter": {
33
"events": ["tco19"]
44
},
5+
"hidden": true,
56
"communityId": "tco19",
67
"communityName": "TCO19",
78
"groupIds": ["20000078"],

src/shared/components/challenge-listing/Filters/FiltersPanel/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export default function FiltersPanel({
181181
};
182182

183183
const communityOps = communityFilters.filter(community => (
184-
(!community.hidden && community.groupIds && community.groupIds.length > 0) || community.communityName === 'All'
184+
(!community.hidden && !community.hideFilter && !_.isEmpty(community.groupIds)) || community.communityName === 'All'
185185
))
186186
.map(community => ({
187187
label: community.communityName,

0 commit comments

Comments
 (0)