Added error handling back
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user