changeset 2072:4087511e8eef

fix
author Alain Mazy <am@osimis.io>
date Thu, 29 Jun 2023 11:21:11 +0200
parents 1096d92febfc
children ae56f7ea0e90
files Applications/StoneWebViewer/WebApplication/app.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Applications/StoneWebViewer/WebApplication/app.js	Thu Jun 29 11:12:16 2023 +0200
+++ b/Applications/StoneWebViewer/WebApplication/app.js	Thu Jun 29 11:21:11 2023 +0200
@@ -1401,7 +1401,7 @@
       that.UpdateIsSeriesComplete(studyInstanceUid, seriesInstanceUid);
 
       // Automatically open the first selected series to be loaded (new in Stone Web viewer 2.5)
-      if (that.isFirstSeries && that.selectedStudies.includes(studyInstanceUid)) {
+      if (that.isFirstSeries && (that.selectedStudies.length == 0 || that.selectedStudies.includes(studyInstanceUid))) {
         that.SetViewportSeriesInstanceUid(1, seriesInstanceUid);
         that.isFirstSeries = false;
       }