From 476adfa494e69f639090160e9f99cf96a879e468 Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Sat, 30 Oct 2021 10:47:26 +0200 Subject: [PATCH] Bug objet non existant --- public/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/app.js b/public/js/app.js index 056975c..45a801c 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -115,7 +115,7 @@ loadingTask.promise.then(function(pdf) { var input_selected = document.querySelector('input[name="svg_2_add"]:checked'); - if(!input_selected.value.match(/^data:/) && input_selected.value != "text") { + if(input_selected && !input_selected.value.match(/^data:/) && input_selected.value != "text") { input_selected = null; }