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
+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.
|
||||
|
||||
Reference in new issue
Block a user