diff --git a/internal/ui/static/js/app.js b/internal/ui/static/js/app.js index a89da8bd5b8..798962bca32 100644 --- a/internal/ui/static/js/app.js +++ b/internal/ui/static/js/app.js @@ -336,7 +336,10 @@ function handleFetchOriginalContent() { response.json().then((data) => { if (data.hasOwnProperty("content") && data.hasOwnProperty("reading_time")) { document.querySelector(".entry-content").innerHTML = data.content; - document.querySelector(".entry-reading-time").innerHTML = data.reading_time; + let entryReadingtimeElement = document.querySelector(".entry-reading-time"); + if (entryReadingtimeElement) { + entryReadingtimeElement.innerHTML = data.reading_time; + } } }); });