Fix for passing availableTools inside Cornerstone extension

This commit is contained in:
Erik Ziegler 2019-02-10 22:43:06 +01:00
parent b413527371
commit 72a4ae11fa
3 changed files with 4 additions and 4 deletions

View File

@ -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",

View File

@ -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.

View File

@ -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",