Skip to content

Commit

Permalink
Merge pull request #4106 from onursumer/conditionally-fetch-ma-downlo…
Browse files Browse the repository at this point in the history
…ad-data

Conditionally fetch mutation assessor download data
  • Loading branch information
inodb authored Jan 3, 2022
2 parents 68b176e + 78db517 commit 6651d72
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/shared/lib/MutationTableDownloadDataFetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
default as GenomeNexusMutationAssessorCache,
defaultGNFetch as fetchGenomeNexusMutationAssessorData,
} from 'shared/cache/GenomeNexusMutationAssessorCache';
import { shouldShowMutationAssessor } from 'shared/lib/genomeNexusAnnotationSourcesUtils';

export class MutationTableDownloadDataFetcher
implements ILazyMobXTableApplicationLazyDownloadDataFetcher {
Expand Down Expand Up @@ -84,7 +85,10 @@ export class MutationTableDownloadDataFetcher
}
}

if (this.genomeNexusMutationAssessorCache) {
if (
shouldShowMutationAssessor() &&
this.genomeNexusMutationAssessorCache
) {
if (this.mutationData.result) {
promises.push(
fetchGenomeNexusMutationAssessorData(
Expand Down

0 comments on commit 6651d72

Please sign in to comment.