diff --git a/anatomy/static/js/anatomy.js b/anatomy/static/js/anatomy.js index aa1bd713..0067daca 100644 --- a/anatomy/static/js/anatomy.js +++ b/anatomy/static/js/anatomy.js @@ -172,8 +172,11 @@ function loadDicomViewer(images_to_load, annotations_to_load) { if (images_to_load != undefined) { images = images_to_load; //} else if (images.indexOf(",") > 0) { - } else { + } else if (images != undefined) { images = JSON.parse(images); + } else { + // No images to load + return } console.log(images); diff --git a/anatomy/templates/anatomy/exam_scores_user.html b/anatomy/templates/anatomy/exam_scores_user.html index 35e17152..bf25eda0 100644 --- a/anatomy/templates/anatomy/exam_scores_user.html +++ b/anatomy/templates/anatomy/exam_scores_user.html @@ -3,7 +3,7 @@ {% block content %}