mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
fix: illegal json invocation
This commit is contained in:
1 parent
396b48d017
commit
42091c54b7
1 file changed
+2
-2
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user