fix: Invariant violation reported to error tracker when client is reloading due to editor update

This commit is contained in:
Tom Moor 2020-05-25 13:10:18 -07:00
parent 446a9ade8c
commit 62dd1e41f9
1 changed files with 1 additions and 2 deletions

View File

@ -104,10 +104,9 @@ class ApiClient {
if (response.status === 400 && error.error === 'editor_update_required') {
window.location.reload(true);
return;
}
throw error;
throw new Error(error.message);
};
get = (path: string, data: ?Object, options?: Object) => {