fix(layout): Set currentImageIdIndex to 0 if image is not found (#429)
* fix(layout): Set currentImageIdIndex to 0 if image is not found * fix(dependencies): Bump react-cornerstone-viewport to 0.1.27
This commit is contained in:
1 parent
be8c243bf8
commit
5818b654b4
3 files changed
+7
-5
No files matched your search
@@ -93,6 +93,8 @@ class OHIFCornerstoneViewport extends Component {
|
||||
|
||||
if (index > -1) {
|
||||
stack.currentImageIdIndex = index;
|
||||
} else {
|
||||
stack.currentImageIdIndex = 0;
|
||||
}
|
||||
} else {
|
||||
stack.currentImageIdIndex = 0;
|
||||
|
||||
Reference in new issue
Block a user