From 48857ea69f481cd8050a174fde087cf1f1c72f46 Mon Sep 17 00:00:00 2001 From: Shawn Rice Date: Wed, 26 Jul 2023 13:33:55 -0700 Subject: [PATCH] fix(core): rm debug statement, form is not array --- app/Modules/Core/Resources/assets/js/core.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Modules/Core/Resources/assets/js/core.js b/app/Modules/Core/Resources/assets/js/core.js index 0f6214e0a..c28c7e628 100755 --- a/app/Modules/Core/Resources/assets/js/core.js +++ b/app/Modules/Core/Resources/assets/js/core.js @@ -882,7 +882,7 @@ document.addEventListener('DOMContentLoaded', function() { e.preventDefault(); var frm = this.closest('form'); - const formData = new FormData(frm[0]); + const formData = new FormData(frm); fetch(this.getAttribute('href'), { method: 'POST', @@ -914,7 +914,6 @@ document.addEventListener('DOMContentLoaded', function() { }); }) .catch(function (err) { - console.log(err); Halcyon.message('danger', err); }); });