Skip to content

Commit

Permalink
Merge pull request hms-dbmi-cellenics#994 from biomage-org/fix-heatma…
Browse files Browse the repository at this point in the history
…p-config-bug

Fix heatmap config bug
  • Loading branch information
cosa65 authored Apr 17, 2024
2 parents a0ab018 + 7783f72 commit c2a9d5b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,13 @@ const MarkerHeatmap = ({ experimentId }) => {
// grouping and metadata tracks should change when selectedCellSet is changed
updatesToDispatch = {
...updatesToDispatch,
selectedTracks: [config.selectedCellSet],
groupedTracks: [config.selectedCellSet],
selectedTracks: [updatesToDispatch.selectedCellSet],
groupedTracks: [updatesToDispatch.selectedCellSet],
};
}

dispatch(updatePlotConfig(plotUuid, updatesToDispatch));

if (updatesToDispatch.nMarkerGenes) {
dispatch(loadMarkerGenes(
experimentId,
Expand All @@ -120,8 +122,6 @@ const MarkerHeatmap = ({ experimentId }) => {
loadDownsampledGeneExpression(experimentId, updatesToDispatch.selectedGenes, plotUuid),
);
}

dispatch(updatePlotConfig(plotUuid, updatesToDispatch));
};

useEffect(() => {
Expand Down

0 comments on commit c2a9d5b

Please sign in to comment.