LT-323: Bug fix for first measurement activation
This commit is contained in:
parent
5975ca4a0f
commit
f1261a997c
@ -118,13 +118,17 @@ Template.viewer.onCreated(() => {
|
||||
OHIF.lesiontracker.toggleLesionTrackerToolsButtons(false);
|
||||
}
|
||||
|
||||
let firstMeasurementActivated = false;
|
||||
instance.autorun(() => {
|
||||
if (!Session.get('TimepointsReady') ||
|
||||
!Session.get('MeasurementsReady') ||
|
||||
!Session.get('ViewerMainReady')) {
|
||||
!Session.get('ViewerMainReady') ||
|
||||
firstMeasurementActivated) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Find and activate the first measurement by Lesion Number
|
||||
// NOTE: This is inefficient, we should be using a hanging protocol
|
||||
// to hang the first measurement's imageId immediately, rather
|
||||
@ -165,6 +169,8 @@ Template.viewer.onCreated(() => {
|
||||
if (rowItem) {
|
||||
OHIF.measurements.jumpToRowItem(rowItem, timepoints);
|
||||
}
|
||||
|
||||
firstMeasurementActivated = true;
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user