Trying to debug duplicate removal on QA server

This commit is contained in:
Erik Ziegler committed 2016-01-11 18:50:15 +01:00
1 parent be5ff6f590
commit fdde2f9ff9
2 files changed
+5

No files matched your search

@@ -161,6 +161,8 @@ Template.viewer.onCreated(function() {
updateRelatedElements(data.imageId); updateRelatedElements(data.imageId);
}, },
removed: function(data) { removed: function(data) {
log.info('Measurement removed');
// Check that this Measurement actually contains timepoint data // Check that this Measurement actually contains timepoint data
if (!data.timepoints) { if (!data.timepoints) {
return; return;
@@ -21,6 +21,9 @@ clearMeasurementTimepointData = function(measurementId, timepointId) {
if (Object.keys(data.timepoints).length === 0) { if (Object.keys(data.timepoints).length === 0) {
Meteor.call('removeMeasurement', measurementId, function(error, response) { Meteor.call('removeMeasurement', measurementId, function(error, response) {
if (error) {
log.warn(error);
}
console.log('Removed!'); console.log('Removed!');
}); });
} else { } else {