PWV-115: Fixing length tool when drawn outside the image

This commit is contained in:
Bruno Alves de Faria 2017-08-24 17:33:30 -03:00
parent 7ed21c95ee
commit 9e0a9c35da

View File

@ -293,6 +293,9 @@ class MeasurementApi {
deleteMeasurements(measurementTypeId, filter) {
const groupCollection = this.toolGroups[measurementTypeId];
// Stop here if it is a temporary toolGroups
if (!groupCollection) return;
// Get the entries information before removing them
const groupItems = groupCollection.find(filter).fetch();
const entries = [];