fix: Invariant violation reported to error tracker when client is reloading due to editor update
This commit is contained in:
@ -104,10 +104,9 @@ class ApiClient {
|
|||||||
|
|
||||||
if (response.status === 400 && error.error === 'editor_update_required') {
|
if (response.status === 400 && error.error === 'editor_update_required') {
|
||||||
window.location.reload(true);
|
window.location.reload(true);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
throw error;
|
throw new Error(error.message);
|
||||||
};
|
};
|
||||||
|
|
||||||
get = (path: string, data: ?Object, options?: Object) => {
|
get = (path: string, data: ?Object, options?: Object) => {
|
||||||
|
Reference in New Issue
Block a user