Throw error if one exists so the UI can respond
This commit is contained in:
@@ -100,6 +100,7 @@ export async function fetchData(url: string, options?: FetchOptions) {
|
||||
return json;
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
throw new Error(error)
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user