Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
qlu-cls committed May 31, 2024
1 parent ca3c51d commit afa3564
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion end-to-end-test/shared/wdio/wdio.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ exports.config = {
//
//

specs: [SPEC_FILE_PATTERN],
// specs: [SPEC_FILE_PATTERN],
specs: ['./local/specs/hide-download-controls.spec.js'],

exclude: ['./local/specs/web-tour.spec.js'],

Expand Down
17 changes: 12 additions & 5 deletions src/pages/groupComparison/Survival.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1099,11 +1099,8 @@ export default class Survival extends React.Component<ISurvivalProps, {}> {

// set default plot if applicable
if (
(!doNotSetDefaultPlot &&
this.selectedSurvivalPlotPrefix === undefined) ||
!this.props.store.survivalClinicalAttributesPrefix.result?.includes(
this.selectedSurvivalPlotPrefix || ''
)
!doNotSetDefaultPlot &&
this.selectedSurvivalPlotPrefix === undefined
) {
// if the table exists pick the first one from the table's store for consistency
if (this.survivalPrefixTable.component) {
Expand All @@ -1125,6 +1122,16 @@ export default class Survival extends React.Component<ISurvivalProps, {}> {
this.selectedSurvivalPlotPrefix
];
const key = this.selectedSurvivalPlotPrefix;

// if (!this.props.store.survivalClinicalAttributesPrefix.result?.includes(
// key
// )) {
// this.setSurvivalPlotPrefix(
// this.survivalPrefixTableDataStore.result!.getSortedFilteredData()[0]
// .prefix
// );
// }

if (value.length > 0) {
if (
this.props.store.survivalDescriptions &&
Expand Down

0 comments on commit afa3564

Please sign in to comment.