Trying to debug duplicate removal on QA server
This commit is contained in:
parent
be5ff6f590
commit
fdde2f9ff9
@ -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;
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user