fix grabbing enabled element

This commit is contained in:
dannyrb 2019-05-15 09:17:43 -04:00
parent 4ad93943dc
commit 724ba44aee
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@
"@babel/runtime": "^7.2.0",
"classnames": "^2.2.6",
"lodash.throttle": "^4.1.1",
"react-cornerstone-viewport": "0.1.25-expose-dom"
"react-cornerstone-viewport": "0.1.25-expose-dom-3"
},
"devDependencies": {
"@babel/core": "^7.2.2",

View File

@ -57,7 +57,7 @@ const mapDispatchToProps = (dispatch, ownProps) => {
* easier.
*/
onElementEnabled: event => {
const enabledElement = event.detail;
const enabledElement = event.detail.element;
dispatch(
setViewportSpecificData(viewportIndex, {
dom: enabledElement