mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-12-23 03:11:26 +00:00
parent
a336b2dccd
commit
ea8cab69f4
1 changed files with 1 additions and 1 deletions
|
@ -1335,7 +1335,7 @@ export class LemmyHttp {
|
|||
}
|
||||
}
|
||||
|
||||
function encodeGetParams<BodyType extends object>(p: BodyType): string {
|
||||
function encodeGetParams<BodyType extends object>(p: BodyType = <BodyType>{}): string {
|
||||
return Object.entries(p)
|
||||
.filter(kv => !!kv[1])
|
||||
.map(kv => kv.map(encodeURIComponent).join("="))
|
||||
|
|
Loading…
Reference in a new issue