From fc8c986f1387ecb3a5e113a4ca0f6143ff41b41b Mon Sep 17 00:00:00 2001 From: Tibor Postek Date: Wed, 26 Feb 2020 09:12:26 +0100 Subject: [PATCH] #41 fix uncheck of compounds --- js/components/preview/compounds/redux/dispatchActions.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/components/preview/compounds/redux/dispatchActions.js b/js/components/preview/compounds/redux/dispatchActions.js index 5fc8f39e8..43e7e0c66 100644 --- a/js/components/preview/compounds/redux/dispatchActions.js +++ b/js/components/preview/compounds/redux/dispatchActions.js @@ -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));