Throw error if one exists so the UI can respond

This commit is contained in:
Gabe Kangas 2021-01-20 21:36:15 -08:00
parent cb5b1aec0e
commit f3d4d095ae

View File

@ -100,6 +100,7 @@ export async function fetchData(url: string, options?: FetchOptions) {
return json;
} catch (error) {
console.log(error)
throw new Error(error)
}
return {};
}