diff --git a/lib/api/client.ts b/lib/api/client.ts index 6362b8c..5014fc5 100644 --- a/lib/api/client.ts +++ b/lib/api/client.ts @@ -339,6 +339,10 @@ async function apiRequest( throw new ApiError(message, response.status, errorBody) } + if (response.status === 204) { + return undefined as T + } + return response.json() })()