Skip to content

Commit

Permalink
Merge pull request #4207 from dippindots/fix-9348
Browse files Browse the repository at this point in the history
Returns a empty list when Structural Variant filter set is empty
  • Loading branch information
alisman authored Mar 21, 2022
2 parents c6195de + 6e1dd3f commit fdd45cd
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/pages/resultsView/ResultsViewPageStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5805,12 +5805,16 @@ export class ResultsViewPageStore
[] as StructuralVariantFilter['sampleMolecularIdentifiers']
);

return client.fetchStructuralVariantsUsingPOST({
structuralVariantFilter: {
entrezGeneIds: [q.entrezGeneId],
sampleMolecularIdentifiers: filters,
} as StructuralVariantFilter,
});
if (_.isEmpty(filters)) {
return [];
} else {
return client.fetchStructuralVariantsUsingPOST({
structuralVariantFilter: {
entrezGeneIds: [q.entrezGeneId],
sampleMolecularIdentifiers: filters,
} as StructuralVariantFilter,
});
}
},
}));

Expand Down

0 comments on commit fdd45cd

Please sign in to comment.