Skip to content

Commit 7713bb5

Browse files
committed
debug 2
1 parent 4a6c291 commit 7713bb5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/javascript/modules/majorProjectForm.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default class MajorProjectForm {
3737
let txt = input.value.replace(/[^a-zA-Z0-9\+\-\.\# ]/g, ''); // allowed characters list
3838
if (txt) input.insertAdjacentHTML("beforebegin", '<span class="skill-tag" id=f"ski">' + txt + '</span>');
3939
let skills = document.getElementsByClassName("skill-tag")
40-
skills[skills.length - 1].addEventListener('click', e => this.onRemoveTag(e));
40+
skills.item(skills.length - 1).addEventListener('click', e => this.onRemoveTag(e));
4141
input.value = "";
4242
input.focus();
4343

@@ -63,6 +63,8 @@ export default class MajorProjectForm {
6363
projectSkills: skills,
6464
projectDescription: this.form.querySelector('textarea[name=description]').value
6565
};
66+
67+
console.log(payload)
6668

6769
FetchUtil.postWithWarning(this.endpoint, payload, {
6870
warningText: "You will not be able to edit your " +

0 commit comments

Comments
 (0)