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