Skip to content

Commit

Permalink
concept comparison | fixing created/updated by
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Dec 21, 2020
1 parent 9519c8a commit 17d7e7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/concepts/ConceptsComparison.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ class ConceptsComparison extends React.Component {
return value ? 'True' : 'False'
} else {
if(includes(['created_by', 'updated_by'], attr))
value ||= get(concept, 'version_${attr}')
value ||= get(concept, `version_${attr}`)
if(attr === 'updated_by' && has(concept, 'version_created_by'))
value ||= concept.version_created_by
return value || '';
}
}
Expand Down

0 comments on commit 17d7e7a

Please sign in to comment.