Skip to content

Commit

Permalink
Merge pull request #44 from openimis/feature/CM-703
Browse files Browse the repository at this point in the history
CM-703: Replace Hyphen for no changes - the same as initial value
  • Loading branch information
jdolkowski authored Apr 5, 2024
2 parents 35f989e + 4f3bee9 commit 85b4cb3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/TaskPreviewCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ function TaskPreviewCell({
formatterIndex, itemData, incomingData, formatter, jsonExt, setAdditionalData,
}) {
const showHistorical = (itemIncomingData) => {
if (formatter(itemData, jsonExt, formatterIndex, setAdditionalData)
=== formatter(itemIncomingData, jsonExt, formatterIndex, setAdditionalData)
|| !formatter(itemIncomingData, jsonExt, formatterIndex, setAdditionalData)) {
if (!formatter(itemIncomingData, jsonExt, formatterIndex, setAdditionalData)) {
return HYPHEN;
}
return formatter(itemIncomingData, jsonExt, formatterIndex, setAdditionalData);
Expand Down

0 comments on commit 85b4cb3

Please sign in to comment.