diff --git a/src/http.ts b/src/http.ts index 8f0b8e0..cdc15dd 100644 --- a/src/http.ts +++ b/src/http.ts @@ -1335,7 +1335,7 @@ export class LemmyHttp { } } -function encodeGetParams(p: BodyType): string { +function encodeGetParams(p: BodyType = {}): string { return Object.entries(p) .filter(kv => !!kv[1]) .map(kv => kv.map(encodeURIComponent).join("="))