Skip to content

Commit

Permalink
#407 Properly turn on/off inspiration fragments when using the next/p…
Browse files Browse the repository at this point in the history
…revious arrows (bug of #384)
  • Loading branch information
Adriána Kohanová committed Oct 23, 2020
1 parent 9dfd6b7 commit 7d7f6bf
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions js/components/preview/molecule/moleculeList.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ import { useRouteMatch } from 'react-router-dom';
import { setSortDialogOpen } from './redux/actions';
import { setCachedMolLists, setMoleculeList } from '../../../reducers/api/actions';
import { AlertModal } from '../../common/Modal/AlertModal';
import { removeAllSelectedDatasetMolecules } from '../../datasets/redux/dispatchActions';

const useStyles = makeStyles(theme => ({
container: {
Expand Down Expand Up @@ -462,8 +461,6 @@ export const MoleculeList = memo(({ height, setFilterItemsHeight, filterItemsHei
const foundedMolecule = molecules?.find(mol => mol.id === moleculeID);
dispatch(removeVector(stage, foundedMolecule, colourList[foundedMolecule.id % colourList.length]));
});

dispatch(removeAllSelectedDatasetMolecules(stage));
};

const addNewType = type => {
Expand Down

0 comments on commit 7d7f6bf

Please sign in to comment.