diff --git a/src/core/blitzkrieg/patientFetchJSON.ts b/src/core/blitzkrieg/patientFetchJSON.ts index c96b4dc83..de3a31105 100644 --- a/src/core/blitzkrieg/patientFetchJSON.ts +++ b/src/core/blitzkrieg/patientFetchJSON.ts @@ -7,8 +7,8 @@ export async function patientFetchJSON( while (patientJSON! === undefined) { try { - patientJSON = (await fetch(url, options).then(({ json }) => - json(), + patientJSON = (await fetch(url, options).then((response) => + response.json(), )) as Type; } catch (error) { console.warn(