From 9bcb9be47134587a41902105561f7eeb1693e990 Mon Sep 17 00:00:00 2001 From: Aysel Afsar Date: Wed, 24 Feb 2016 15:13:30 -0500 Subject: [PATCH] LT-182: Display study date/thumbnails of the selected study as default --- .../client/components/studyDateList/studyDateList.js | 6 +++--- Packages/lesiontracker/lib/worklist/worklistModification.js | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Packages/lesiontracker/client/components/studyDateList/studyDateList.js b/Packages/lesiontracker/client/components/studyDateList/studyDateList.js index 9492eec24..2b817e810 100644 --- a/Packages/lesiontracker/client/components/studyDateList/studyDateList.js +++ b/Packages/lesiontracker/client/components/studyDateList/studyDateList.js @@ -19,14 +19,14 @@ Template.studyDateList.helpers({ sort: { studyDate: -1 } - }); + }).fetch(); // Modify the array of related studies so the default option is the currently selected study - relatedStudies.forEach(function(study) { + relatedStudies.forEach(function(study, index) { // If the studyInstanceUid matches that of the current study in the browser, // Set this to 'selected', so that it becomes the default option if (study.studyInstanceUid === currentStudyInBrowser.studyInstanceUid) { - study.selected = true; + relatedStudies[index].selected = true; } }); diff --git a/Packages/lesiontracker/lib/worklist/worklistModification.js b/Packages/lesiontracker/lib/worklist/worklistModification.js index 8010d40f9..aad8fd258 100644 --- a/Packages/lesiontracker/lib/worklist/worklistModification.js +++ b/Packages/lesiontracker/lib/worklist/worklistModification.js @@ -14,8 +14,6 @@ function dblClickOnStudy(data) { studyInstanceUid: data.studyInstanceUid }); - console.log(study); - // Check if the study has been associated, and if not, just open it on its own if (!study) { // Open a new tab with this study