From 42091c54b7e72d03a8ee698084a8b5482316ce20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Wed, 22 Nov 2023 23:49:24 -0600 Subject: [PATCH] fix: illegal json invocation --- src/core/blitzkrieg/patientFetchJSON.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(