Skip to content

Commit

Permalink
#1603 - fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskovar-m2ms committed Dec 10, 2024
1 parent b59b4e3 commit c5bba58
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/components/preview/molecule/redux/dispatchActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ const setDensity = (
id: data.id,
display: true,
representations: representations,
isWireframeStyle: isWireframeStyle
isWireframeStyle: isWireframeStyle,
densityData: data.proteinData
})
);
};
Expand Down Expand Up @@ -376,7 +377,8 @@ const setDensityCustom = (
id: data.id,
display: true,
representations: representations,
isWireframeStyle: isWireframeStyle
isWireframeStyle: isWireframeStyle,
densityData: data.proteinData
})
);
};
Expand Down
4 changes: 4 additions & 0 deletions js/reducers/ngl/useDisplayDensityLHS.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export const useDisplayDensityLHS = () => {
await dispatch(getDensityMapData(data));
}

data.proteinData = densityData.densityData;

const prepParams = dispatch(getDensityChangedParams(densityData.isWireframeStyle));
const densityObject = generateDensityObject(data, colourToggle, base_url, densityData.isWireframeStyle);
const combinedObject = { ...prepParams, ...densityObject };
Expand Down Expand Up @@ -106,6 +108,8 @@ export const useDisplayDensityLHS = () => {
await dispatch(getDensityMapData(data));
}

data.proteinData = densityData.densityData;

let densityObject = dispatch(getDensityChangedParams());
densityObject = dispatch(toggleDensityWireframe(densityData.isWireframeStyle, densityObject));
const oldDensityData = dispatch(deleteDensityObject(data, colourToggle, stage, !densityData.isWireframeStyle));
Expand Down

0 comments on commit c5bba58

Please sign in to comment.