Update src/rest/run_method.ts

Co-authored-by: ayntee <ayyantee@gmail.com>
This commit is contained in:
ITOH
2021-04-07 10:46:02 +02:00
committed by GitHub
parent 728570a210
commit e21581a6b9
+1 -1
View File
@@ -35,7 +35,7 @@ export function runMethod<T = any>(
.then((res) => {
if (res.status === 204) return undefined;
return res.json() as unknown as T;
return res.json() as T;
})
.catch((error) => {
console.error(error);