Trying to fix encodeGetParams 2.

This commit is contained in:
Dessalines 2022-06-13 21:58:15 -04:00
parent f17701e446
commit 6aa4a8356b

View file

@ -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