Skip to content

Commit

Permalink
Merge pull request #6952 from topcoder-platform/develop
Browse files Browse the repository at this point in the history
PROD HOTFIX - Fix show_data_dashboard flag to be either a string _or_ a boolean
  • Loading branch information
jmgasper authored Dec 14, 2023
2 parents e6afd31 + d0969f6 commit 10fd9d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ workflows:
filters:
branches:
only:
- IC-13
- metadata-fix
# This is alternate dev env for parallel testing
- "build-qa":
context : org-global
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ export default function ChallengeViewSelector(props) {
const { type, tags, metadata } = challenge;
const dashboardMetadata = _.find(metadata, { name: 'show_data_dashboard' });
if (dashboardMetadata) {
showDashboard = dashboardMetadata.value;
if (_.isString(dashboardMetadata.value)) {
showDashboard = dashboardMetadata.value === 'true';
} else if (_.isBoolean(dashboardMetadata.value)) {
showDashboard = dashboardMetadata.value;
}
}

const [currentSelected, setCurrentSelected] = useState('Details');
Expand Down

0 comments on commit 10fd9d9

Please sign in to comment.