Bug fix for studyThumbnails helper that sometimes runs with no data in Lesion Tracker (OHIF-36)
This commit is contained in:
parent
fe32c40832
commit
ba76a89e13
@ -65,9 +65,9 @@ Template.studyTimepointStudy.events({
|
||||
|
||||
if (!alreadyLoaded) {
|
||||
$study.addClass('loading');
|
||||
getStudyMetadata(studyInstanceUid, studyData => {
|
||||
getStudyMetadata(studyInstanceUid, study => {
|
||||
study.displaySets = createStacks(study);
|
||||
ViewerStudies.insert(studyData);
|
||||
ViewerStudies.insert(study);
|
||||
instance.select(isQuickSwitch);
|
||||
});
|
||||
} else {
|
||||
|
||||
@ -2,6 +2,10 @@
|
||||
* A global Blaze UI helper to get the thumbnails for the given study
|
||||
*/
|
||||
Template.registerHelper('studyThumbnails', study => {
|
||||
if (!study) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Find the study's stacks
|
||||
const stacks = study.displaySets;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user