Added error handling back

This commit is contained in:
Jori Lallo
2017-06-05 23:54:26 -07:00
parent 3d02c49b05
commit 1b25408272

View File

@@ -77,7 +77,7 @@ class DocumentStore {
@action fetchDocument = async () => {
this.isFetching = true;
// try {
try {
const res = await client.get(
'/documents.info',
{
@@ -91,9 +91,9 @@ class DocumentStore {
} else {
this.document = res.data;
}
// } catch (e) {
// console.error('Something went wrong');
// }
} catch (e) {
console.error('Something went wrong');
}
this.isFetching = false;
};