Skip to content

Commit 51b997f

Browse files
authored
Merge pull request #1585 from topcoder-platform/metadata-fix
Metadata fix -> dev
2 parents efdabbd + d2cf6fa commit 51b997f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ install_dependency: &install_dependency
2222
sudo apt update
2323
sudo apt install python3-pip
2424
sudo pip3 install awscli --upgrade
25+
sudo pip3 install docker==6.1.3
2526
sudo pip3 install docker-compose
2627
2728
install_test_dependency: &install_test_dependency
@@ -152,7 +153,7 @@ workflows:
152153
context : org-global
153154
filters: &filters-dev
154155
branches:
155-
only: ['develop', 'multiround', 'release_0.20.9']
156+
only: ['develop', 'multiround', 'release_0.20.9', 'metadata-fix']
156157

157158
# Production builds are exectuted only on tagged commits to the
158159
# master branch.

src/components/ChallengeEditor/ChallengeView/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const ChallengeView = ({
102102
const showCheckpointPrizes = _.get(challenge, 'timelineTemplateId') === MULTI_ROUND_CHALLENGE_TEMPLATE_ID
103103
const isDataScience = challenge.trackId === DS_TRACK_ID
104104
const useDashboardData = _.find(challenge.metadata, { name: 'show_data_dashboard' })
105-
const useDashboard = useDashboardData ? useDashboardData.value : true
105+
const useDashboard = useDashboardData ? (useDashboardData.value === 'true') : false
106106

107107
return (
108108
<div className={styles.wrapper}>

src/util/date.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ export const updateChallengePhaseBeforeSendRequest = (challengeDetail) => {
198198
}))
199199
return challengeDetailTmp
200200
}
201-
if(challengeDetail.metadata && challengeDetail.metadata.length > 0) {
201+
if (challengeDetail.metadata && challengeDetail.metadata.length > 0) {
202202
challengeDetail.metadata = challengeDetail.metadata.map(m => {
203203
// check if value is boolean and convert to string
204204
if (typeof m.value === 'boolean') {

0 commit comments

Comments
 (0)