mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-22 20:31:12 +00:00
Trying to fix encodeGetParams 2.
This commit is contained in:
parent
f17701e446
commit
6aa4a8356b
1 changed files with 2 additions and 0 deletions
|
@ -1097,8 +1097,10 @@ export class LemmyHttp {
|
|||
}
|
||||
|
||||
function encodeGetParams<BodyType>(p: BodyType): string {
|
||||
console.log(p);
|
||||
// Necessary to remove the Options
|
||||
let serialized = JSON.parse(serialize(p));
|
||||
console.log(serialized);
|
||||
return (
|
||||
Object.entries(serialized)
|
||||
// TODO test this, it might serialize the undefineds
|
||||
|
|
Loading…
Reference in a new issue