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;
|
return json;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
|
throw new Error(error)
|
||||||
}
|
}
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user