Skip to content

Commit 82b84d3

Browse files
author
Adriána Kohanová
committed
#515 RHS - 'A' button has different shade of blue color
1 parent e78af5e commit 82b84d3

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

js/components/datasets/datasetMoleculeView.js

+12-15
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,11 @@ export const DatasetMoleculeView = memo(
262262
removeOfAllSelectedTypes,
263263
removeOfAllSelectedTypesOfInspirations,
264264
moveSelectedMoleculeInspirationsSettings,
265-
L, P, C, S, V
265+
L,
266+
P,
267+
C,
268+
S,
269+
V
266270
}) => {
267271
const selectedAll = useRef(false);
268272
const currentID = (data && data.id) || undefined;
@@ -294,7 +298,7 @@ export const DatasetMoleculeView = memo(
294298

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

297-
const hasAllValuesOn = isLigandOn && isProteinOn && isComplexOn && isSurfaceOn;
301+
const hasAllValuesOn = isLigandOn && isProteinOn && isComplexOn;
298302
const hasSomeValuesOn = !hasAllValuesOn && (isLigandOn || isProteinOn || isComplexOn || isSurfaceOn);
299303

300304
const areArrowsVisible = isLigandOn || isProteinOn || isComplexOn || isSurfaceOn;
@@ -319,18 +323,7 @@ export const DatasetMoleculeView = memo(
319323
dispatch(getMolImage(data.smiles, MOL_TYPE.DATASET, imageHeight, imageWidth)).then(i => {
320324
setImage(i);
321325
});
322-
}, [
323-
C,
324-
currentID,
325-
data,
326-
L,
327-
imageHeight,
328-
imageWidth,
329-
data.smiles,
330-
data.id,
331-
filteredDatasetMoleculeList,
332-
dispatch
333-
]);
326+
}, [C, currentID, data, L, imageHeight, imageWidth, data.smiles, data.id, filteredDatasetMoleculeList, dispatch]);
334327

335328
const svg_image = (
336329
<SVGInline
@@ -518,7 +511,11 @@ export const DatasetMoleculeView = memo(
518511
const getInspirationsForMol = (datasetId, molId) => {
519512
let inspirations = [];
520513

521-
if (allInspirations && allInspirations.hasOwnProperty(datasetId) && allInspirations[datasetId].hasOwnProperty(molId)) {
514+
if (
515+
allInspirations &&
516+
allInspirations.hasOwnProperty(datasetId) &&
517+
allInspirations[datasetId].hasOwnProperty(molId)
518+
) {
522519
inspirations = allInspirations[datasetId][molId];
523520
}
524521

0 commit comments

Comments
 (0)