From 1c286f9c21db30a729f0459a96dc36d9448abe28 Mon Sep 17 00:00:00 2001 From: cosa65 Date: Mon, 15 Apr 2024 16:04:33 -0300 Subject: [PATCH] Fix Signed-off-by: cosa65 --- .../plots-and-tables/marker-heatmap/index.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/experiments/[experimentId]/plots-and-tables/marker-heatmap/index.jsx b/src/pages/experiments/[experimentId]/plots-and-tables/marker-heatmap/index.jsx index b979f350c2..ad76b0d047 100644 --- a/src/pages/experiments/[experimentId]/plots-and-tables/marker-heatmap/index.jsx +++ b/src/pages/experiments/[experimentId]/plots-and-tables/marker-heatmap/index.jsx @@ -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, @@ -120,8 +122,6 @@ const MarkerHeatmap = ({ experimentId }) => { loadDownsampledGeneExpression(experimentId, updatesToDispatch.selectedGenes, plotUuid), ); } - - dispatch(updatePlotConfig(plotUuid, updatesToDispatch)); }; useEffect(() => {