PWV-115: Fixing length tool when drawn outside the image
This commit is contained in:
parent
7ed21c95ee
commit
9e0a9c35da
@ -293,6 +293,9 @@ class MeasurementApi {
|
|||||||
deleteMeasurements(measurementTypeId, filter) {
|
deleteMeasurements(measurementTypeId, filter) {
|
||||||
const groupCollection = this.toolGroups[measurementTypeId];
|
const groupCollection = this.toolGroups[measurementTypeId];
|
||||||
|
|
||||||
|
// Stop here if it is a temporary toolGroups
|
||||||
|
if (!groupCollection) return;
|
||||||
|
|
||||||
// Get the entries information before removing them
|
// Get the entries information before removing them
|
||||||
const groupItems = groupCollection.find(filter).fetch();
|
const groupItems = groupCollection.find(filter).fetch();
|
||||||
const entries = [];
|
const entries = [];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user