@ohif/extension-cornerstone: Prevent errors when display set is empty object (0.0.40) (#637)
This commit is contained in:
parent
ff2c1cb2f1
commit
91d2d31846
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ohif/extension-cornerstone",
|
"name": "@ohif/extension-cornerstone",
|
||||||
"version": "0.0.39",
|
"version": "0.0.40",
|
||||||
"description": "OHIF extension for Cornerstone",
|
"description": "OHIF extension for Cornerstone",
|
||||||
"author": "OHIF",
|
"author": "OHIF",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@ -202,6 +202,10 @@ class OHIFCornerstoneViewport extends Component {
|
|||||||
frameIndex,
|
frameIndex,
|
||||||
} = displaySet;
|
} = displaySet;
|
||||||
|
|
||||||
|
if (!studyInstanceUid || !displaySetInstanceUid) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (sopClassUids && sopClassUids.length > 1) {
|
if (sopClassUids && sopClassUids.length > 1) {
|
||||||
console.warn(
|
console.warn(
|
||||||
'More than one SOPClassUid in the same series is not yet supported.'
|
'More than one SOPClassUid in the same series is not yet supported.'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user