Trying to debug duplicate removal on QA server

This commit is contained in:
Erik Ziegler 2016-01-11 18:50:15 +01:00
parent be5ff6f590
commit fdde2f9ff9
2 changed files with 5 additions and 0 deletions

View File

@ -161,6 +161,8 @@ Template.viewer.onCreated(function() {
updateRelatedElements(data.imageId);
},
removed: function(data) {
log.info('Measurement removed');
// Check that this Measurement actually contains timepoint data
if (!data.timepoints) {
return;

View File

@ -21,6 +21,9 @@ clearMeasurementTimepointData = function(measurementId, timepointId) {
if (Object.keys(data.timepoints).length === 0) {
Meteor.call('removeMeasurement', measurementId, function(error, response) {
if (error) {
log.warn(error);
}
console.log('Removed!');
});
} else {