Skip to content

Commit

Permalink
Merge pull request #1585 from topcoder-platform/metadata-fix
Browse files Browse the repository at this point in the history
Metadata fix -> dev
  • Loading branch information
jmgasper authored Dec 14, 2023
2 parents efdabbd + d2cf6fa commit 51b997f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ install_dependency: &install_dependency
sudo apt update
sudo apt install python3-pip
sudo pip3 install awscli --upgrade
sudo pip3 install docker==6.1.3
sudo pip3 install docker-compose
install_test_dependency: &install_test_dependency
Expand Down Expand Up @@ -152,7 +153,7 @@ workflows:
context : org-global
filters: &filters-dev
branches:
only: ['develop', 'multiround', 'release_0.20.9']
only: ['develop', 'multiround', 'release_0.20.9', 'metadata-fix']

# Production builds are exectuted only on tagged commits to the
# master branch.
Expand Down
2 changes: 1 addition & 1 deletion src/components/ChallengeEditor/ChallengeView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const ChallengeView = ({
const showCheckpointPrizes = _.get(challenge, 'timelineTemplateId') === MULTI_ROUND_CHALLENGE_TEMPLATE_ID
const isDataScience = challenge.trackId === DS_TRACK_ID
const useDashboardData = _.find(challenge.metadata, { name: 'show_data_dashboard' })
const useDashboard = useDashboardData ? useDashboardData.value : true
const useDashboard = useDashboardData ? (useDashboardData.value === 'true') : false

return (
<div className={styles.wrapper}>
Expand Down
2 changes: 1 addition & 1 deletion src/util/date.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export const updateChallengePhaseBeforeSendRequest = (challengeDetail) => {
}))
return challengeDetailTmp
}
if(challengeDetail.metadata && challengeDetail.metadata.length > 0) {
if (challengeDetail.metadata && challengeDetail.metadata.length > 0) {
challengeDetail.metadata = challengeDetail.metadata.map(m => {
// check if value is boolean and convert to string
if (typeof m.value === 'boolean') {
Expand Down

0 comments on commit 51b997f

Please sign in to comment.