Skip to content

Commit

Permalink
- checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskovar-m2ms committed Nov 16, 2023
1 parent 155a96b commit e5a04e5
Show file tree
Hide file tree
Showing 6 changed files with 2,573 additions and 59 deletions.
21 changes: 0 additions & 21 deletions js/components/preview/molecule/moleculeView/moleculeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -667,21 +667,6 @@ const MoleculeView = memo(
);
};

// useEffect(() => {
// if (!proteinData) {
// dispatch(getProteinData(data)).then(i => {
// if (i && i.length > 0) {
// const proteinData = i[0];
// data.proteinData = proteinData;
// const result =
// data.proteinData &&
// (data.proteinData.diff_info || data.proteinData.event_info || data.proteinData.sigmaa_info);
// setHasMap(result);
// }
// });
// }
// }, [data, dispatch, proteinData]);

// componentDidMount
useEffect(() => {
dispatch(getMolImage(data.id, MOL_TYPE.HIT, imageWidth, imageHeight)).then(i => {
Expand Down Expand Up @@ -823,9 +808,6 @@ const MoleculeView = memo(
};

const addNewSurface = () => {
// if (selectMoleculeSite) {
// selectMoleculeSite(data.site);
// }
dispatch(
withDisabledMoleculeNglControlButton(currentID, 'surface', async () => {
await dispatch(addSurface(stage, data, colourToggle));
Expand Down Expand Up @@ -912,9 +894,6 @@ const MoleculeView = memo(
};

const addNewVector = () => {
// if (selectMoleculeSite) {
// selectMoleculeSite(data.site);
// }
dispatch(
withDisabledMoleculeNglControlButton(currentID, 'vector', async () => {
await dispatch(addVector(stage, data));
Expand Down
Loading

0 comments on commit e5a04e5

Please sign in to comment.