LT-275: Retrieving timepoint associations properly from backend

This commit is contained in:
Erik Ziegler committed 2016-11-15 08:24:30 +01:00
1 parent 2d291251e9
commit 60b72683d5
9 files changed
+42 -22

No files matched your search

@@ -33,6 +33,10 @@ Template.measurementTableTimepointCell.helpers({
const measurementTools = config.measurementTools;
const tool = _.where(measurementTools, {id: rowItem.measurementTypeId})[0];
if (!tool) {
// TODO: Figure out what is going on here?
console.warn('Something went wrong?');
}
const displayFunction = tool.options.measurementTableOptions.displayFunction;
return displayFunction(data);
}