File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -349,6 +349,7 @@ workflows:
349
349
filters :
350
350
branches :
351
351
only :
352
+ - enable_dashboard_on_data_science
352
353
- free
353
354
# This is alternate dev env for parallel testing
354
355
- " build-test " :
Original file line number Diff line number Diff line change @@ -42,7 +42,12 @@ export default function ChallengeViewSelector(props) {
42
42
viewAsTable,
43
43
} = props ;
44
44
45
- const { type, tags } = challenge ;
45
+ let showDashboard ;
46
+ const { type, tags, metadata } = challenge ;
47
+ const dashboardMetadata = _ . find ( metadata , { name : 'show_data_dashboard' } ) ;
48
+ if ( dashboardMetadata ) {
49
+ showDashboard = dashboardMetadata . value ;
50
+ }
46
51
47
52
const [ currentSelected , setCurrentSelected ] = useState ( 'Details' ) ;
48
53
const [ isTabClosed , setIsTabClosed ] = useState ( true ) ;
@@ -300,7 +305,7 @@ export default function ChallengeViewSelector(props) {
300
305
return '' ;
301
306
} ) ( ) }
302
307
{
303
- ( isMM || challenge . track . toLowerCase ( ) === 'data science' ) && (
308
+ ( challenge . track . toLowerCase ( ) === 'data science' && showDashboard ) && (
304
309
< a
305
310
tabIndex = "0"
306
311
role = "tab"
@@ -455,6 +460,7 @@ ChallengeViewSelector.propTypes = {
455
460
type : PT . string ,
456
461
track : PT . string ,
457
462
tags : PT . arrayOf ( PT . shape ( ) ) ,
463
+ metadata : PT . arrayOf ( PT . string ) ,
458
464
submissionViewable : PT . string ,
459
465
} ) ,
460
466
isMM : PT . bool ,
You can’t perform that action at this time.
0 commit comments