Skip to content

Commit

Permalink
Merge pull request #4922 from thehyve/fix_ga_profile_switch
Browse files Browse the repository at this point in the history
Fix swapping generic assay profiles in comparison view
  • Loading branch information
inodb authored Jul 1, 2024
2 parents fa4a480 + 25fc31c commit b14bcf0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 130 deletions.
125 changes: 0 additions & 125 deletions src/pages/groupComparison/GenericAssayEnrichments.tsx

This file was deleted.

10 changes: 5 additions & 5 deletions src/shared/lib/comparison/ComparisonStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1699,14 +1699,14 @@ export default abstract class ComparisonStore extends AnalysisStore
readonly gaEnrichmentGroupsByAssayType = remoteData({
await: () => [
this
.selectedGenericAssayEnrichmentProfileMapGroupedByGenericAssayType,
.selectedAllGenericAssayEnrichmentProfileMapGroupedByGenericAssayType,
this.enrichmentAnalysisGroups,
],
invoke: () => {
return Promise.resolve(
_.mapValues(
this
.selectedGenericAssayEnrichmentProfileMapGroupedByGenericAssayType
.selectedAllGenericAssayEnrichmentProfileMapGroupedByGenericAssayType
.result!,
selectedGenericAssayEnrichmentProfileMap => {
let studyIds = Object.keys(
Expand Down Expand Up @@ -1850,7 +1850,7 @@ export default abstract class ComparisonStore extends AnalysisStore
await: () => [
this.gaEnrichmentGroupsByAssayType,
this
.selectedGenericAssayEnrichmentProfileMapGroupedByGenericAssayType,
.selectedAllGenericAssayEnrichmentProfileMapGroupedByGenericAssayType,
],
invoke: () => {
return Promise.resolve(
Expand All @@ -1866,7 +1866,7 @@ export default abstract class ComparisonStore extends AnalysisStore
sample => ({
caseId: sample.sampleId,
molecularProfileId: this
.selectedGenericAssayEnrichmentProfileMapGroupedByGenericAssayType
.selectedAllGenericAssayEnrichmentProfileMapGroupedByGenericAssayType
.result![genericAssayType][
sample.studyId
].molecularProfileId,
Expand Down Expand Up @@ -1973,7 +1973,7 @@ export default abstract class ComparisonStore extends AnalysisStore
await: () => [],
getSelectedProfileMap: () =>
this
.selectedGenericAssayEnrichmentProfileMapGroupedByGenericAssayType
.selectedAllGenericAssayEnrichmentProfileMapGroupedByGenericAssayType
.result![genericAssayType], // returns an empty array if the selected study doesn't have any generic assay profiles
fetchData: () => {
if (
Expand Down

0 comments on commit b14bcf0

Please sign in to comment.