Skip to content

Commit

Permalink
xchem#41 fix uncheck of compounds
Browse files Browse the repository at this point in the history
  • Loading branch information
tibor-postek-m2ms committed Mar 10, 2020
1 parent f33d37d commit fc8c986
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/components/preview/compounds/redux/dispatchActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export const handleClickOnCompound = ({ data, event, majorViewStage }) => async
Object.keys(selectedCompoundsClass).forEach(async classKey => {
let isNotSelected = selectedCompoundsClass[classKey].find(item => item === data.index);
console.log(isNotSelected, selectedCompoundsClass[classKey]);
console.err(isNotSelected, selectedCompoundsClass[classKey]);
if (isNotSelected.length > 0) {
await dispatch(removeSelectedCompoundClass(data.index));
dispatch(removeFromToBuyList(data));
Expand Down

0 comments on commit fc8c986

Please sign in to comment.