Stop throwing errors when no study data is available, log issue instead.
This commit is contained in:
1 parent
319f030f32
commit
5cec053b8d
2 files changed
+2
-3
No files matched your search
+2
-2
@@ -30,7 +30,7 @@ Template.studyTimepointBrowser.onCreated(() => {
|
||||
return timepoint.studyInstanceUids.map(studyInstanceUid => {
|
||||
const query = {
|
||||
patientId: timepoint.patientId,
|
||||
studyInstanceUid: studyInstanceUid
|
||||
studyInstanceUid
|
||||
};
|
||||
|
||||
const loadedStudy = OHIF.viewer.Studies.findBy(query);
|
||||
@@ -40,7 +40,7 @@ Template.studyTimepointBrowser.onCreated(() => {
|
||||
|
||||
const notYetLoaded = OHIF.studylist.collections.Studies.findOne(query);
|
||||
if (!notYetLoaded) {
|
||||
throw new OHIFError(`No study data available for Study: ${studyInstanceUid}`);
|
||||
OHIF.log.info(`No study data available for Study: ${studyInstanceUid}`);
|
||||
}
|
||||
|
||||
return notYetLoaded;
|
||||
|
||||
Reference in new issue
Block a user