Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

refactor: fetch add #1063

Closed
wants to merge 28 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: oops, removed more code than I should have
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
  • Loading branch information
Alan Shaw committed Jul 29, 2019
commit b58c489648a7e6ffda7174850185f2f0fabe8f9c
4 changes: 3 additions & 1 deletion src/lib/querystring.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
exports.objectToQuery = obj => {
if (!obj) return ''

let qs = Object.entries(obj).forEach(([key, value]) => {
let qs = new URLSearchParams()

Object.entries(obj).forEach(([key, value]) => {
if (value != null) {
if (Array.isArray(value)) {
value.forEach(v => qs.append(key, v))
Expand Down