Skip to content

Commit

Permalink
Refactor field names in TorsionGraph.tsx for code consistency
Browse files Browse the repository at this point in the history
The commit renames certain attributes in TorsionGraph.tsx from snake_case to camelCase according to the JavaScript conventions. The changes promote better coding standards and enhance uniformity across the application.
  • Loading branch information
Dialpuri committed Mar 17, 2024
1 parent 455d7b2 commit e2a8a03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webapp/src/database/DatabaseComponents/TorsionGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ export default function TorsionGraph(data) {
for (const linkage in linkages) {
for (let j = 0; j < linkages[linkage].length; j++) {
const data = {
sugar_1: linkages[linkage][j].first_residue,
sugar_2: linkages[linkage][j].second_residue,
sugar_1: linkages[linkage][j].firstResidue,
sugar_2: linkages[linkage][j].secondResidue,
atom_number_1:
linkages[linkage][j].donor_atom.slice(-1),
linkages[linkage][j].donorAtom.slice(-1),
atom_number_2:
linkages[linkage][j].acceptor_atom.slice(-1),
linkages[linkage][j].acceptorAtom.slice(-1),
phi: linkages[linkage][j].phi,
psi: linkages[linkage][j].psi,
};
Expand Down

0 comments on commit e2a8a03

Please sign in to comment.