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:
parent
98e8cf4eca
commit
cbe895be64
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user