diff --git a/.circleci/config.yml b/.circleci/config.yml index 4b55743ad..ae6e4084a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/src/shared/components/challenge-detail/Header/TabSelector/index.jsx b/src/shared/components/challenge-detail/Header/TabSelector/index.jsx index 557a5ebbb..a2fd9bf2f 100644 --- a/src/shared/components/challenge-detail/Header/TabSelector/index.jsx +++ b/src/shared/components/challenge-detail/Header/TabSelector/index.jsx @@ -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');