[fix] no return on fetch error handle
This commit is contained in:
@@ -670,6 +670,7 @@ export async function downloadRisuHub(id:string) {
|
|||||||
})
|
})
|
||||||
if(res.status !== 200){
|
if(res.status !== 200){
|
||||||
alertError(await res.text())
|
alertError(await res.text())
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const result = await res.json()
|
const result = await res.json()
|
||||||
|
|||||||
Reference in New Issue
Block a user