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) {
|
if (!alreadyLoaded) {
|
||||||
$study.addClass('loading');
|
$study.addClass('loading');
|
||||||
getStudyMetadata(studyInstanceUid, studyData => {
|
getStudyMetadata(studyInstanceUid, study => {
|
||||||
study.displaySets = createStacks(study);
|
study.displaySets = createStacks(study);
|
||||||
ViewerStudies.insert(studyData);
|
ViewerStudies.insert(study);
|
||||||
instance.select(isQuickSwitch);
|
instance.select(isQuickSwitch);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -2,6 +2,10 @@
|
|||||||
* A global Blaze UI helper to get the thumbnails for the given study
|
* A global Blaze UI helper to get the thumbnails for the given study
|
||||||
*/
|
*/
|
||||||
Template.registerHelper('studyThumbnails', study => {
|
Template.registerHelper('studyThumbnails', study => {
|
||||||
|
if (!study) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Find the study's stacks
|
// Find the study's stacks
|
||||||
const stacks = study.displaySets;
|
const stacks = study.displaySets;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user