LT-350: fix :: Removing measurements from viewport

Steps to reproduce

- Add a target measurement on baseline and follow up
- Remove the follow up measurement from viewport
- Remove the baseline measurement from Measurement table ("Delete" button)
This commit is contained in:
Leonardo Campos 2017-01-12 12:52:09 -02:00
parent 98e8cf4eca
commit cbe895be64

View File

@ -274,6 +274,10 @@ class MeasurementApi {
const groupItems = groupCollection.find(filter).fetch();
const entries = [];
groupItems.forEach(groupItem => {
if (!groupItem.toolId) {
return;
}
const collection = this.tools[groupItem.toolId];
entries.push(collection.findOne(groupItem.toolItemId));
collection.remove(groupItem.toolItemId);