diff --git a/src/http.ts b/src/http.ts index 366c447..57f739f 100644 --- a/src/http.ts +++ b/src/http.ts @@ -1316,8 +1316,9 @@ export class LemmyHttp { if (!response.ok) { throw json["error"] ?? response.statusText; + } else { + return json; } - return json; } }