@@ -262,7 +262,11 @@ export const DatasetMoleculeView = memo(
262
262
removeOfAllSelectedTypes,
263
263
removeOfAllSelectedTypesOfInspirations,
264
264
moveSelectedMoleculeInspirationsSettings,
265
- L, P, C, S, V
265
+ L,
266
+ P,
267
+ C,
268
+ S,
269
+ V
266
270
} ) => {
267
271
const selectedAll = useRef ( false ) ;
268
272
const currentID = ( data && data . id ) || undefined ;
@@ -294,7 +298,7 @@ export const DatasetMoleculeView = memo(
294
298
295
299
const isCheckedToBuy = ( currentID && compoundsToBuyList && compoundsToBuyList . includes ( currentID ) ) || false ;
296
300
297
- const hasAllValuesOn = isLigandOn && isProteinOn && isComplexOn && isSurfaceOn ;
301
+ const hasAllValuesOn = isLigandOn && isProteinOn && isComplexOn ;
298
302
const hasSomeValuesOn = ! hasAllValuesOn && ( isLigandOn || isProteinOn || isComplexOn || isSurfaceOn ) ;
299
303
300
304
const areArrowsVisible = isLigandOn || isProteinOn || isComplexOn || isSurfaceOn ;
@@ -319,18 +323,7 @@ export const DatasetMoleculeView = memo(
319
323
dispatch ( getMolImage ( data . smiles , MOL_TYPE . DATASET , imageHeight , imageWidth ) ) . then ( i => {
320
324
setImage ( i ) ;
321
325
} ) ;
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 ] ) ;
334
327
335
328
const svg_image = (
336
329
< SVGInline
@@ -518,7 +511,11 @@ export const DatasetMoleculeView = memo(
518
511
const getInspirationsForMol = ( datasetId , molId ) => {
519
512
let inspirations = [ ] ;
520
513
521
- if ( allInspirations && allInspirations . hasOwnProperty ( datasetId ) && allInspirations [ datasetId ] . hasOwnProperty ( molId ) ) {
514
+ if (
515
+ allInspirations &&
516
+ allInspirations . hasOwnProperty ( datasetId ) &&
517
+ allInspirations [ datasetId ] . hasOwnProperty ( molId )
518
+ ) {
522
519
inspirations = allInspirations [ datasetId ] [ molId ] ;
523
520
}
524
521
0 commit comments