From e2a8a0311eaad02065865f607ee6512222e1c144 Mon Sep 17 00:00:00 2001 From: Jordan Dialpuri <44945647+Dialpuri@users.noreply.github.com> Date: Sun, 17 Mar 2024 08:50:02 +0000 Subject: [PATCH] Refactor field names in TorsionGraph.tsx for code consistency 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. --- webapp/src/database/DatabaseComponents/TorsionGraph.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webapp/src/database/DatabaseComponents/TorsionGraph.tsx b/webapp/src/database/DatabaseComponents/TorsionGraph.tsx index 7ca84613..ba2e0cc0 100644 --- a/webapp/src/database/DatabaseComponents/TorsionGraph.tsx +++ b/webapp/src/database/DatabaseComponents/TorsionGraph.tsx @@ -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, };