@@ -61,7 +61,7 @@ import {
61
61
} from './redux/actions' ;
62
62
import { DatasetFilter } from './datasetFilter' ;
63
63
import { FilterList , Link , DeleteForever , ArrowUpward , ArrowDownward , Edit } from '@material-ui/icons' ;
64
- import { getJoinedMoleculeLists } from './redux/selectors' ;
64
+ import { getJoinedMoleculeLists , getLHSVisibleListsForRHS } from './redux/selectors' ;
65
65
import { InspirationDialog } from './inspirationDialog' ;
66
66
import { CrossReferenceDialog } from './crossReferenceDialog' ;
67
67
import { AlertModal } from '../common/Modal/AlertModal' ;
@@ -432,9 +432,11 @@ const DatasetMoleculeList = ({ title, datasetID, url }) => {
432
432
const complexListDataset = useSelector ( state => state . datasetsReducers . complexLists [ datasetID ] ) ;
433
433
const surfaceListDataset = useSelector ( state => state . datasetsReducers . surfaceLists [ datasetID ] ) ;
434
434
// #1249 dataset molecules currently could use side observation molecule for some renders
435
- const proteinList = useSelector ( state => state . selectionReducers . proteinList ) ;
436
- const complexList = useSelector ( state => state . selectionReducers . complexList ) ;
437
- const surfaceList = useSelector ( state => state . selectionReducers . surfaceList ) ;
435
+
436
+ const { proteinList, complexList, surfaceList } = useSelector ( state => getLHSVisibleListsForRHS ( state , datasetID ) ) ;
437
+ // const proteinList = useSelector(state => state.selectionReducers.proteinList);
438
+ // const complexList = useSelector(state => state.selectionReducers.complexList);
439
+ // const surfaceList = useSelector(state => state.selectionReducers.surfaceList);
438
440
const allMoleculesList = useSelector ( state => state . apiReducers . all_mol_lists ) ;
439
441
440
442
// const [selectedMolecules, setSelectedMolecules] = useState([]);
@@ -485,11 +487,17 @@ const DatasetMoleculeList = ({ title, datasetID, url }) => {
485
487
} ;
486
488
487
489
let isLigandOn = isSelectedTypeOn ( ligandList ) ;
488
- let isProteinOn = isSelectedTypeOn ( proteinList ) ;
489
- let isComplexOn = isSelectedTypeOn ( complexList ) ;
490
+ let isProteinOn = isSelectedTypeOn ( proteinList ) || isSelectedTypeOn ( proteinListDataset ) ;
491
+ let isComplexOn = isSelectedTypeOn ( complexList ) || isSelectedTypeOn ( complexListDataset ) ;
490
492
491
493
let areArrowsVisible =
492
- isTypeOn ( ligandList ) || isTypeOn ( proteinList ) || isTypeOn ( complexList ) || isTypeOn ( surfaceList ) ;
494
+ isTypeOn ( ligandList ) ||
495
+ isTypeOn ( proteinList ) ||
496
+ isTypeOn ( complexList ) ||
497
+ isTypeOn ( surfaceList ) ||
498
+ isTypeOn ( proteinListDataset ) ||
499
+ isTypeOn ( complexListDataset ) ||
500
+ isTypeOn ( surfaceListDataset ) ;
493
501
494
502
const addType = {
495
503
ligand : addDatasetLigand ,
0 commit comments