LT-115: Adjusting functions to save and retrieve measurements again

This commit is contained in:
Bruno Alves de Faria committed 2017-01-02 16:32:09 -02:00
1 parent c9c2cd548e
commit f13080309e
4 files changed
+36 -49

No files matched your search

@@ -138,7 +138,9 @@ Template.viewer.onCreated(() => {
// to hang the first measurement's imageId immediately, rather
// than changing images after initial loading...
const config = OHIF.measurements.MeasurementApi.getConfiguration();
const measurementTypeId = config.measurementTools[0].id;
const tools = config.measurementTools[0].childTools;
const firstTool = tools[Object.keys(tools)[0]];
const measurementTypeId = firstTool.id;
const measurementApi = instance.data.measurementApi;
const timepointApi = instance.data.timepointApi;