Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/#515' into allfunctionality
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskovar-m2ms committed Feb 1, 2021
2 parents 548dc26 + 82b84d3 commit c683a05
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion js/components/datasets/datasetMoleculeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export const DatasetMoleculeView = memo(

const isCheckedToBuy = (currentID && compoundsToBuyList && compoundsToBuyList.includes(currentID)) || false;

const hasAllValuesOn = isLigandOn && isProteinOn && isComplexOn && isSurfaceOn;
const hasAllValuesOn = isLigandOn && isProteinOn && isComplexOn;
const hasSomeValuesOn = !hasAllValuesOn && (isLigandOn || isProteinOn || isComplexOn || isSurfaceOn);

const areArrowsVisible = isLigandOn || isProteinOn || isComplexOn || isSurfaceOn;
Expand Down Expand Up @@ -485,6 +485,20 @@ export const DatasetMoleculeView = memo(
});
};

const getInspirationsForMol = (datasetId, molId) => {
let inspirations = [];

if (
allInspirations &&
allInspirations.hasOwnProperty(datasetId) &&
allInspirations[datasetId].hasOwnProperty(molId)
) {
inspirations = allInspirations[datasetId][molId];
}

return inspirations;
};

const handleClickOnDownArrow = () => {
const refNext = ref.current.nextSibling;
scrollToElement(refNext);
Expand Down

0 comments on commit c683a05

Please sign in to comment.