Fix for passing availableTools inside Cornerstone extension
This commit is contained in:
1 parent
b413527371
commit
72a4ae11fa
3 files changed
+4
-4
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ohif-cornerstone-extension",
|
||||
"version": "0.0.8",
|
||||
"version": "0.0.9",
|
||||
"description": "OHIF extension for Cornerstone",
|
||||
"author": "OHIF",
|
||||
"license": "MIT",
|
||||
|
||||
+2
-2
@@ -10,8 +10,8 @@ const mapStateToProps = (state, ownProps) => {
|
||||
const activeButton = state.tools.buttons.find(tool => tool.active === true);
|
||||
let availableTools;
|
||||
|
||||
if (state.extensions && state.extensions.cornerstone && state.extensions.availableTools) {
|
||||
availableTools = state.extensions.availableTools;
|
||||
if (state.extensions && state.extensions.cornerstone && state.extensions.cornerstone.availableTools) {
|
||||
availableTools = state.extensions.cornerstone.availableTools;
|
||||
};
|
||||
|
||||
// If this is the active viewport, enable prefetching.
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
"hammerjs": "^2.0.8",
|
||||
"lodash.isequal": "^4.5.0",
|
||||
"ohif-core": "^0.2.8",
|
||||
"ohif-cornerstone-extension": "^0.0.8",
|
||||
"ohif-cornerstone-extension": "^0.0.9",
|
||||
"ohif-dicom-html-extension": "^0.0.2",
|
||||
"ohif-dicom-microscopy-extension": "^0.0.5",
|
||||
"ohif-dicom-pdf-extension": "^0.0.5",
|
||||
|
||||
Reference in new issue
Block a user