Browse Source

Throw error if one exists so the UI can respond

pull/1886/head
Gabe Kangas 5 years ago
parent
commit
f3d4d095ae
  1. 1
      web/utils/apis.ts

1
web/utils/apis.ts

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

Loading…
Cancel
Save