diff --git a/atlas/templates/atlas/series_form.html b/atlas/templates/atlas/series_form.html index cc3559bf..e169aff6 100755 --- a/atlas/templates/atlas/series_form.html +++ b/atlas/templates/atlas/series_form.html @@ -206,7 +206,7 @@ const readFile = (file, el) => { reader(file).then(reader => { console.log("hello", file, el, image) - if (!$("#id_examination").find(":selected").length) { + if ($("#id_examination").find(":selected")[0].dataset.select2Id == "2") { var byteArray = new Uint8Array(reader.result); console.log("etrxact") extractDicomStudyDescription(byteArray);