fix: illegal json invocation

This commit is contained in:
TrèsAbhi authored and GitHub committed 2023-11-22 23:49:24 -06:00
1 parent 396b48d017
commit 42091c54b7
1 file changed
+2 -2
+2 -2
View File
@@ -7,8 +7,8 @@ export async function patientFetchJSON<Type extends object>(
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(