Skip to content

Commit

Permalink
Skipping parameters when empty key and/or value when requesting
Browse files Browse the repository at this point in the history
  • Loading branch information
netojose committed Dec 12, 2019
1 parent 3e6f751 commit a4808fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions resources/assets/build/bundle.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function formatArguments(params, variables) {
return params.reduce((acc, curr) => {
const name = applyVariables(curr.name, variables)
const value = applyVariables(curr.value, variables)
return curr.checked ? { ...acc, [name]: value } : acc
return curr.checked && name && value ? { ...acc, [name]: value } : acc
}, {})
}

Expand Down

0 comments on commit a4808fc

Please sign in to comment.