From 5bd3af0cca09eca2be9bc267451acd35d631fc87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Felipe=20de=20Medeiros=20Moreira?= Date: Mon, 15 Jul 2019 11:09:58 -0300 Subject: [PATCH] fix(Viewer): Removes fixed modality and get the one returned from ohif-core (#664) * fix(Viewer): Removes fixed modality insert and starting using the information returned from ohif-cor * fix(Viewer): Includes condition when display set does not have modality information to use UN for un --- src/connectedComponents/Viewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connectedComponents/Viewer.js b/src/connectedComponents/Viewer.js index e6e900f26..7186b041d 100644 --- a/src/connectedComponents/Viewer.js +++ b/src/connectedComponents/Viewer.js @@ -344,7 +344,7 @@ const _mapStudiesToThumbnails = function(studies) { if (displaySet.images && displaySet.images.length) { imageId = displaySet.images[0].getImageId(); } else { - altImageText = 'SR'; + altImageText = displaySet.modality ? displaySet.modality : 'UN'; } return {