Skip to content

Commit

Permalink
fix(core): rm debug statement, form is not array
Browse files Browse the repository at this point in the history
  • Loading branch information
zooley committed Jul 26, 2023
1 parent 7d75b59 commit 48857ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/Modules/Core/Resources/assets/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -914,7 +914,6 @@ document.addEventListener('DOMContentLoaded', function() {
});
})
.catch(function (err) {
console.log(err);
Halcyon.message('danger', err);
});
});
Expand Down

0 comments on commit 48857ea

Please sign in to comment.