@ohif/extension-cornerstone: Prevent errors when display set is empty object (0.0.40) (#637)

This commit is contained in:
Erik Ziegler authored and GitHub committed 2019-07-09 18:17:13 +02:00
1 parent ff2c1cb2f1
commit 91d2d31846
2 files changed
+5 -1

No files matched your search

@@ -202,6 +202,10 @@ class OHIFCornerstoneViewport extends Component {
frameIndex,
} = displaySet;
if (!studyInstanceUid || !displaySetInstanceUid) {
return;
}
if (sopClassUids && sopClassUids.length > 1) {
console.warn(
'More than one SOPClassUid in the same series is not yet supported.'