diff --git a/src/lib/api/client.ts b/src/lib/api/client.ts index 4bf08de..3e225ac 100644 --- a/src/lib/api/client.ts +++ b/src/lib/api/client.ts @@ -139,6 +139,10 @@ async function apiFetch(path: string, options: FetchOptions = {}): Promise await throwApiError(response) } + if (response.status === 204) { + return undefined as T + } + return response.json() as Promise }