BunnyCDN, Search tab, journeys redesign, and dashboard polish #52
@@ -339,6 +339,10 @@ async function apiRequest<T>(
|
||||
throw new ApiError(message, response.status, errorBody)
|
||||
}
|
||||
|
||||
if (response.status === 204) {
|
||||
return undefined as T
|
||||
}
|
||||
|
||||
return response.json()
|
||||
})()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user