Fix a tiny bug by checking study in prior

This commit is contained in:
Evren Ozkan 2016-11-14 19:22:23 -05:00
parent 9544a24ed8
commit f9f4a14bae

View File

@ -322,6 +322,10 @@ Template.viewportOverlay.helpers({
// Get study data
var study = cornerstoneTools.metaData.get('study', this.imageId);
if (!study) {
return;
}
if (study.studyDate === viewportStudies.fetch()[0].studyDate) {
return 'Prior';
}