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 => {
|
measurements.forEach(measurement => {
|
||||||
delete measurement._id;
|
delete measurement._id;
|
||||||
|
// @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);
|
this.tools[measurement.toolType].insert(measurement);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -18,7 +18,6 @@ Package.onUse(function(api) {
|
|||||||
// Our custom packages
|
// Our custom packages
|
||||||
api.use('ohif:design');
|
api.use('ohif:design');
|
||||||
api.use('ohif:core');
|
api.use('ohif:core');
|
||||||
api.use('ohif:cornerstone');
|
|
||||||
api.use('ohif:log');
|
api.use('ohif:log');
|
||||||
|
|
||||||
const assets = [
|
const assets = [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user