fix(ohif-cornerstone-extension): Handle undefined sopClassUids

Bump ohif-cornerstone-extension to 0.0.22
This commit is contained in:
Evren Ozkan committed 2019-03-08 08:55:59 -05:00
1 parent 19eeb07f0b
commit ae4fa90e99
3 files changed
+7 -7

No files matched your search

@@ -167,13 +167,13 @@ class OHIFCornerstoneViewport extends Component {
frameIndex
} = displaySet;
if (sopClassUids.length > 1) {
if (sopClassUids && sopClassUids.length > 1) {
console.warn(
'More than one SOPClassUid in the same series is not yet supported.'
);
}
const sopClassUid = sopClassUids[0];
const sopClassUid = sopClassUids && sopClassUids[0];
this.getViewportData(
studies,