Skip to content

Commit

Permalink
xchem#41 fix select all compounds
Browse files Browse the repository at this point in the history
  • Loading branch information
tibor-postek-m2ms committed Mar 10, 2020
1 parent 977cae9 commit c9dbbf5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/components/preview/compounds/redux/dispatchActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ export const selectAllCompounds = () => (dispatch, getState) => {
for (let key in thisVectorList) {
for (let index in thisVectorList[key]) {
if (index !== 'vector') {
for (let fUCompound in thisVectorList[key][index]) {
for (let indexOfCompound in thisVectorList[key][index]) {
var thisObj = {
smiles: thisVectorList[key][index][fUCompound].end,
smiles: thisVectorList[key][index][indexOfCompound].end,
vector: thisVectorList[key].vector.split('_')[0],
mol: to_query,
class: parseInt(currentCompoundClass)
};
dispatch(appendToBuyList(thisObj));
dispatch(addSelectedCompoundClass(currentCompoundClass, indexOfCompound));
}
}
}
Expand Down

0 comments on commit c9dbbf5

Please sign in to comment.