Fix a tiny bug by checking study in prior
This commit is contained in:
1 parent
9544a24ed8
commit
f9f4a14bae
1 file changed
+4
@@ -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';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user