Do search() call to retrieve all studies inside onCreated callback of worklistResult template

This commit is contained in:
Evren Ozkan committed 2016-06-17 09:26:10 -04:00
1 parent 5a680261c7
commit 7ffe59655c
1 file changed
+4 -3
@@ -50,9 +50,6 @@ Template.worklistResult.helpers({
}
});
// Retrieve all studies
search();
var studyDateFrom;
var studyDateTo;
var filter;
@@ -175,6 +172,10 @@ function search() {
Template.worklistResult.onCreated(function() {
this.sortOption = new ReactiveVar();
this.sortingColumns = new ReactiveDict();
// Retrieve all studies
search();
// Set sortOption
var sortOptionSession = Session.get('sortOption');
if (sortOptionSession) {