Building the viewer data inside routes

This commit is contained in:
Bruno Alves de Faria committed 2017-03-21 10:16:47 -03:00
1 parent 7718d31a77
commit 9ccebb76bd
9 files changed
+193 -94

No files matched your search

@@ -119,7 +119,7 @@ Template.viewer.onCreated(() => {
instance.data.studies.forEach(study => (delete study.timepointType));
// TODO: Consider combining the retrieval calls into one?
const timepointsPromise = timepointApi.retrieveTimepoints(patientId);
const timepointsPromise = timepointApi.retrieveTimepoints({ patientId });
timepointsPromise.then(() => {
const timepoints = timepointApi.all();