fix: Invariant violation reported to error tracker when client is reloading due to editor update
This commit is contained in:
parent
446a9ade8c
commit
62dd1e41f9
|
@ -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) => {
|
||||
|
|
Reference in New Issue