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

This commit is contained in:
Erik Ziegler 2019-07-09 18:17:13 +02:00 committed by GitHub
parent ff2c1cb2f1
commit 91d2d31846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@ohif/extension-cornerstone",
"version": "0.0.39",
"version": "0.0.40",
"description": "OHIF extension for Cornerstone",
"author": "OHIF",
"license": "MIT",

View File

@ -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.'