Skip to content

Commit ed0f01f

Browse files
committed
Fix return on 201
1 parent e1f9c8f commit ed0f01f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/http-requests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class HttpRequests {
6767
body: JSON.stringify(body),
6868
headers: this.headers,
6969
}).then((res) => httpResponseErrorHandler(res))
70-
const parsedBody = await response.json().catch(() => null)
70+
const parsedBody = await response.json().catch(() => undefined)
7171

7272
return parsedBody
7373
} catch (e: any) {

0 commit comments

Comments
 (0)