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:
Eloízio Salgado 2017-01-23 19:31:18 -02:00 committed by Emanuel F. Oliveira
parent 4a58d37738
commit b866e6e6c7
2 changed files with 5 additions and 2 deletions

View File

@ -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);
}
});
});

View File

@ -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 = [