diff --git a/apis_ontology/static/scripts/show_popup.js b/apis_ontology/static/scripts/show_popup.js index e61a7f2..ba3df58 100644 --- a/apis_ontology/static/scripts/show_popup.js +++ b/apis_ontology/static/scripts/show_popup.js @@ -57,6 +57,7 @@ function showPopup(recordId, renderStyle) { // show 404 error if the respose is 404 if (teidata.includes("Page not found")) { document.getElementById("popupContent").innerHTML = "Excerpt Not Found"; + document.getElementById("rawTEI").innerText = ""; document.getElementById('popupModal').style.display = 'block'; return; }