From 9e0a9c35da6d02b557a1781d2c94ad916fc185e2 Mon Sep 17 00:00:00 2001 From: Bruno Alves de Faria Date: Thu, 24 Aug 2017 17:33:30 -0300 Subject: [PATCH] PWV-115: Fixing length tool when drawn outside the image --- Packages/ohif-measurements/both/configuration/measurements.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Packages/ohif-measurements/both/configuration/measurements.js b/Packages/ohif-measurements/both/configuration/measurements.js index 9bd34137b..b08db4c6c 100644 --- a/Packages/ohif-measurements/both/configuration/measurements.js +++ b/Packages/ohif-measurements/both/configuration/measurements.js @@ -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 = [];