We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1f9c8f commit ed0f01fCopy full SHA for ed0f01f
src/lib/http-requests.ts
@@ -67,7 +67,7 @@ class HttpRequests {
67
body: JSON.stringify(body),
68
headers: this.headers,
69
}).then((res) => httpResponseErrorHandler(res))
70
- const parsedBody = await response.json().catch(() => null)
+ const parsedBody = await response.json().catch(() => undefined)
71
72
return parsedBody
73
} catch (e: any) {
0 commit comments