LT-275: Retrieving timepoint associations properly from backend
This commit is contained in:
1 parent
2d291251e9
commit
60b72683d5
9 files changed
+42
-22
No files matched your search
+4
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user