fix(lesion-tracker): Stop trying to load study with non-existent studyInstanceUid

This commit is contained in:
Erik Ziegler committed 2018-10-01 14:15:29 +02:00
1 parent 1e97a3eff7
commit 3c4c8c26f9
1 file changed
+5
@@ -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);