Check study instances whether they have image data based on sopClassUid or rows (JPEG and PNG images do not have sopClassUid) in layoutManager as well

This commit is contained in:
Evren Ozkan 2016-06-10 17:37:07 -04:00
parent c0fe9fff50
commit 5935c027b1

View File

@ -51,7 +51,9 @@ LayoutManager = class LayoutManager {
// TODO: Change this when we add PDF and MPEG support
// See https://ohiforg.atlassian.net/browse/LT-227
var firstInstance = series.instances[0];
if (!firstInstance.rows) {
// All imaging modalities must have a valid value for sopClassUid or rows
if (!firstInstance || (!isImage(firstInstance.sopClassUid) && !firstInstance.rows)) {
currentViewportData = {};
} else {
currentViewportData = {