From c2bf2bfdc0b2aa7549c90fd64d169292cb130eb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1na=20Kohanov=C3=A1?= Date: Mon, 30 Nov 2020 06:31:12 +0100 Subject: [PATCH] #462 Mass actions --- js/components/datasets/crossReferenceDialog.js | 2 +- js/components/datasets/redux/dispatchActions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/components/datasets/crossReferenceDialog.js b/js/components/datasets/crossReferenceDialog.js index 78361819d..d6dc9ec95 100644 --- a/js/components/datasets/crossReferenceDialog.js +++ b/js/components/datasets/crossReferenceDialog.js @@ -27,7 +27,7 @@ import { getListOfSelectedLigandOfAllDatasets, getListOfSelectedProteinOfAllDatasets } from './redux/selectors'; -import { changeButtonClassname, onButtonToggle } from './helpers'; +import { changeButtonClassname } from './helpers'; const useStyles = makeStyles(theme => ({ paper: { diff --git a/js/components/datasets/redux/dispatchActions.js b/js/components/datasets/redux/dispatchActions.js index 4ca875187..25c6830f8 100644 --- a/js/components/datasets/redux/dispatchActions.js +++ b/js/components/datasets/redux/dispatchActions.js @@ -399,7 +399,7 @@ const addAllLigandsFromList = (moleculeList = [], stage, skipTracking = false) = const removeAllLigandsFromList = (moleculeList = [], stage, skipTracking = false) => dispatch => { moleculeList.forEach(molecule => { dispatch( - addDatasetLigand( + removeDatasetLigand( stage, molecule.molecule, colourList[molecule.molecule.id % colourList.length],