Skip to content

Commit

Permalink
fix(layout): Set currentImageIdIndex to 0 if image is not found (#429)
Browse files Browse the repository at this point in the history
* fix(layout): Set currentImageIdIndex to 0 if image is not found

* fix(dependencies): Bump react-cornerstone-viewport to 0.1.27
  • Loading branch information
evren217 committed May 15, 2019
1 parent be8c243 commit 5818b65
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion extensions/ohif-cornerstone-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@babel/runtime": "^7.2.0",
"classnames": "^2.2.6",
"lodash.throttle": "^4.1.1",
"react-cornerstone-viewport": "0.1.26"
"react-cornerstone-viewport": "0.1.27"
},
"devDependencies": {
"@babel/core": "^7.2.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ class OHIFCornerstoneViewport extends Component {

if (index > -1) {
stack.currentImageIdIndex = index;
} else {
stack.currentImageIdIndex = 0;
}
} else {
stack.currentImageIdIndex = 0;
Expand Down
8 changes: 4 additions & 4 deletions extensions/ohif-cornerstone-extension/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4418,10 +4418,10 @@ randomfill@^1.0.3:
randombytes "^2.0.5"
safe-buffer "^5.1.0"

react-cornerstone-viewport@0.1.26:
version "0.1.26"
resolved "https://registry.yarnpkg.com/react-cornerstone-viewport/-/react-cornerstone-viewport-0.1.26.tgz#eb09ae7c5d0f24e20a852fdc3ce648935d182370"
integrity sha512-t4onVJeib+FHWNHZNVrJyndLw8dCf7cI/69r5pNE4Sefjxw7pDuPdXfmZdcT8VWpl9cLairTqtqaLW+gXxTxIA==
react-cornerstone-viewport@0.1.27:
version "0.1.27"
resolved "https://registry.yarnpkg.com/react-cornerstone-viewport/-/react-cornerstone-viewport-0.1.27.tgz#6e00be845c1684aadaf31d0f0ee3933fd44e33f3"
integrity sha512-pPIy7snnIXjxyZcghAKmyxvrim8xzQxhml7TxGZ/fv2L+rAsF2ZhsB7LLEUCXIZXL3F8A30VTHWLK3lV92TBDQ==
dependencies:
lodash.debounce "^4.0.8"
moment "^2.23.0"
Expand Down

0 comments on commit 5818b65

Please sign in to comment.