Skip to content

Commit

Permalink
#759 | Correct code format / indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
himeshr committed Mar 25, 2024
1 parent 5a366f5 commit 9876b02
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions src/dataEntryApp/components/Observations.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,23 +373,11 @@ const Observations = ({ observations, additionalRows, form, customKey, highlight
}
};

const rows = _.filter(
orderedObs,
obs => isNotAssociatedWithForm || !_.isEmpty(obs.sortedObservationsArray)
).map((obs, fegIndex) => renderObservationValue(obs, fegIndex, isNotAssociatedWithForm));
const rows = _.filter(orderedObs, obs => isNotAssociatedWithForm || !_.isEmpty(obs.sortedObservationsArray))
.map((obs, fegIndex) => renderObservationValue(obs, fegIndex, isNotAssociatedWithForm));

additionalRows &&
!_.isEmpty(additionalRows) &&
rows.push(
includeAdditionalRows(
additionalRows,
rows.length,
t,
renderText,
renderFEGView,
StyledTableRow
)
);
additionalRows && !_.isEmpty(additionalRows) && rows
.push(includeAdditionalRows(additionalRows, rows.length, t, renderText, renderFEGView, StyledTableRow));

return isEmpty(rows) ? (
<div />
Expand Down

0 comments on commit 9876b02

Please sign in to comment.