From 62dd1e41f9b4634038dbfe45c752619e4d0ba881 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 25 May 2020 13:10:18 -0700 Subject: [PATCH] fix: Invariant violation reported to error tracker when client is reloading due to editor update --- app/utils/ApiClient.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/utils/ApiClient.js b/app/utils/ApiClient.js index dfcaa147..35dd6481 100644 --- a/app/utils/ApiClient.js +++ b/app/utils/ApiClient.js @@ -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) => {