diff --git a/static/js/dicomViewer.js b/static/js/dicomViewer.js index c618955d..ad918d6e 100644 --- a/static/js/dicomViewer.js +++ b/static/js/dicomViewer.js @@ -1178,7 +1178,7 @@ export function getNextAnnotationImage(element) { const enabled_element = cornerstone.getEnabledElement(element) const image_ids = enabled_element.toolStateManager.toolState.stack.data[0].imageIds; const current_image = enabled_element.toolStateManager.toolState.stack.data[0].currentImageIdIndex; - const annotated_images = Object.getOwnPropertyNames(cornerstoneTools.globalImageIdSpecificToolStateManager.toolState); + const annotated_images = Object.getOwnPropertyNames(cornerstoneTools.globalImageIdSpecificToolStateManager.saveToolState()); if (annotated_images.length > 0) { let offset = current_image;