From 02d7e772c6e14fb9dfc504aa0f48cfdb54e05a1c Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 27 Jan 2021 10:41:19 +0000 Subject: [PATCH] . --- js/viewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/viewer.js b/js/viewer.js index a277f63..19d59a7 100644 --- a/js/viewer.js +++ b/js/viewer.js @@ -511,7 +511,7 @@ export function openMainImage(current_question, t, source) { function loadAnnotation(imageId, annotation) { const toolStateManager = cornerstoneTools.globalImageIdSpecificToolStateManager; - if (annotation.length < 1) { return } + if (annotation == undefined || annotation.length < 1) { return } let tool_state_no_id = JSON.parse(annotation);