File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -552,14 +552,15 @@ const updateModeViews = () =>{
552
552
} ;
553
553
554
554
const checkWorkbookModeSettings = ( ) => {
555
- if ( grnState . mode === NETWORK_PPI_MODE ) {
555
+ const hasExpression = hasExpressionData ( workbook . expression ) ;
556
+ if ( grnState . mode === NETWORK_PPI_MODE || ! hasExpression ) {
556
557
grnState . nodeColoring . nodeColoringEnabled = false ;
557
558
grnState . nodeColoring . showMenu = true ;
558
559
grnState . colorOptimal = false ;
559
560
showNodeColoringMenus ( ) ;
560
561
hideEdgeWeightOptions ( ) ;
561
562
updateModeViews ( ) ;
562
- } else if ( grnState . mode === NETWORK_GRN_MODE ) {
563
+ } else if ( grnState . mode === NETWORK_GRN_MODE && hasExpression ) {
563
564
grnState . nodeColoring . nodeColoringEnabled = true ;
564
565
grnState . nodeColoring . showMenu = true ;
565
566
grnState . colorOptimal = true ;
You can’t perform that action at this time.
0 commit comments