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);
|
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 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user