diff --git a/undercover/templates/writing.jinja2 b/undercover/templates/writing.jinja2 index 7111e46..9ae10ce 100644 --- a/undercover/templates/writing.jinja2 +++ b/undercover/templates/writing.jinja2 @@ -32,7 +32,7 @@ const clearErrors = () => { const e = document.getElementById('letter_errors') - e.parentNode.removeChild(e) + e?.parentNode.removeChild(e) } {% endblock head %} @@ -106,11 +106,7 @@ Generate PDF