Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #1980: Evaluation Summaries not populating with data #2083

Merged
merged 5 commits into from
Jan 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class VariantInterpretationSummaryHeader extends Component {
const variant = interpretation && interpretation.variant, disease = interpretation && interpretation.disease;
let clinVarId = variant && variant.clinvarVariantId ? variant.clinvarVariantId : null;
let carId = variant && variant.carId ? variant.carId : null;
const lastSavedDate = classification.last_modified ? getClassificationSavedDate(classification) : null;
const publishStatus = classification ? classification.publishClassification : false;
const publishDate = classification ? classification.publishDate : null;

Expand Down Expand Up @@ -62,7 +63,9 @@ class VariantInterpretationSummaryHeader extends Component {
{classification ?
<div>
<dt>Date interpretation saved:</dt>
<dd className="classificationSaved">{moment(getClassificationSavedDate(classification)).format("YYYY MMM DD, h:mm a")}</dd>
{lastSavedDate ?
<dd className="classificationSaved">{moment(lastSavedDate).format("YYYY MMM DD, h:mm a")}</dd>
: null}
</div>
: null}
{publishStatus && publishDate ?
Expand Down