fix(lesion-tracker): Stop trying to load study with non-existent studyInstanceUid
This commit is contained in:
parent
1e97a3eff7
commit
3c4c8c26f9
@ -35,6 +35,11 @@ Template[defaultTemplate].onRendered(() => {
|
||||
if (computation.firstRun) return;
|
||||
computation.stop();
|
||||
const imageIndex = instance.getImageIndex();
|
||||
|
||||
if (!studyInstanceUid || !seriesInstanceUid) {
|
||||
return;
|
||||
}
|
||||
|
||||
OHIF.studies.loadStudy(studyInstanceUid).then(studyMetadata => {
|
||||
const seriesMetadata = studyMetadata.getSeriesByUID(seriesInstanceUid);
|
||||
const instanceMetadata = seriesMetadata.getInstanceByIndex(imageIndex);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user