Removing ohif-cornerstone as a dependency for ohif-viewerbase. It should be added in the Viewer level. Avoiding error on temp measurements
This commit is contained in:
parent
4a58d37738
commit
b866e6e6c7
@ -201,7 +201,11 @@ class MeasurementApi {
|
||||
|
||||
measurements.forEach(measurement => {
|
||||
delete measurement._id;
|
||||
this.tools[measurement.toolType].insert(measurement);
|
||||
// @TODO: check if this conditional is ok, because is throwing
|
||||
// an error for temp measurements -> measurement.toolType is undefined
|
||||
if(measurement.toolType && this.tools[measurement.toolType]) {
|
||||
this.tools[measurement.toolType].insert(measurement);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@ -18,7 +18,6 @@ Package.onUse(function(api) {
|
||||
// Our custom packages
|
||||
api.use('ohif:design');
|
||||
api.use('ohif:core');
|
||||
api.use('ohif:cornerstone');
|
||||
api.use('ohif:log');
|
||||
|
||||
const assets = [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user