Skip to content

Commit b6732a8

Browse files
committed
fix server api
1 parent b3595f8 commit b6732a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/example.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ const useServerOkQuery = () => {
2121
if (!res.ok) {
2222
throw res;
2323
}
24-
return res.json();
24+
return res.text();
2525
})
2626
.catch((error) => {
2727
captureException(error);
28-
return null;
28+
throw error;
2929
});
3030
},
3131
});

0 commit comments

Comments
 (0)