Skip to content

Commit

Permalink
Merge pull request #19 from PDERAS/bugfix/sending-null-as-string
Browse files Browse the repository at this point in the history
send empty string instead of stringified null
  • Loading branch information
reed-jones authored Oct 22, 2019
2 parents f03df62 + cb99ba6 commit 8879a4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pderas/vue2-table",
"version": "2.0.0",
"version": "2.0.1",
"description": "A simple vue component for rendering sortable and searchable tables.",
"main": "dist/vue-table.umd.min.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const network = {
};
const toQuery = params => {
const str = Object.keys(params).map(key => key + '=' + params[key]).join('&');
const str = Object.keys(params).map(key => `${key}=${params[key] || ''}`).join('&');
return str ? `?${str}` : str;
};
Expand Down

0 comments on commit 8879a4d

Please sign in to comment.