Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mwilliams1188 committed Feb 24, 2021
1 parent add5221 commit fce2b8b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions client/edit-profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ setTimeout(() => {

$('#wf-form-Editing-Profile').submit(function (event) {
event.preventDefault()
let data = objectifyForm($(this).serializeArray())
data = data.filter(i => i.value)
let data = objectifyForm($(this).serializeArray().filter(i => i.value))
console.log(data)
updateUser(data)
})
Expand Down
4 changes: 2 additions & 2 deletions client/edit-project.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,14 @@ $('#wf-form-Submit-Project').submit(function (event) {

let selectedTags = $('.multiple-select').serializeArray().map(item => item.value)
data.tags = [...new Set(selectedTags)]

console.log(data)
createProject(data)
})

$('#wf-form-Edit-Project').submit(function (event) {
event.preventDefault()
let data = objectifyForm($(this).serializeArray())
let data = objectifyForm($(this).serializeArray().filter(i => i.value))

data.details = tinymce.get()[0].getContent()

Expand Down
2 changes: 1 addition & 1 deletion client/edit-workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ $('#wf-form-Submit-Workflow').submit(function (event) {

$('#wf-form-Edit-Workflow').submit(function (event) {
event.preventDefault()
let data = objectifyForm($(this).serializeArray())
let data = objectifyForm($(this).serializeArray().filter(i => i.value))

data.details = tinymce.get()[0].getContent()

Expand Down

0 comments on commit fce2b8b

Please sign in to comment.