Skip to content

Commit ddf61e4

Browse files
committed
chore: swap mass spectrometry and peak annotation section in RecordView
1 parent 0e17a44 commit ddf61e4

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

web-frontend/src/elements/record/RecordView.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,19 @@ function RecordView({ record, width, height }: inputProps) {
7373
elements.push(spectrum);
7474
elementLabels.push('Spectrum');
7575

76+
const massSpectrometry = (
77+
<Content>
78+
{buildDivider('Mass Spectrometry')}
79+
<MassSpectrometryTable
80+
massSpectrometry={record.mass_spectrometry}
81+
width="100%"
82+
height="auto"
83+
/>
84+
</Content>
85+
);
86+
elements.push(massSpectrometry);
87+
elementLabels.push('Mass Spectrometry');
88+
7689
if (hasAnnotation) {
7790
const peakAnnotation = (
7891
<Content>
@@ -90,19 +103,6 @@ function RecordView({ record, width, height }: inputProps) {
90103
elementLabels.push('Peak Annotation');
91104
}
92105

93-
const massSpectrometry = (
94-
<Content>
95-
{buildDivider('Mass Spectrometry')}
96-
<MassSpectrometryTable
97-
massSpectrometry={record.mass_spectrometry}
98-
width="100%"
99-
height="auto"
100-
/>
101-
</Content>
102-
);
103-
elements.push(massSpectrometry);
104-
elementLabels.push('Mass Spectrometry');
105-
106106
const acquisition = (
107107
<Content>
108108
{buildDivider('Acquisition')}

0 commit comments

Comments
 (0)