From 678f5c91b1f615a624dd0c7516926b9ba62251de Mon Sep 17 00:00:00 2001 From: Herman Steuernagel Date: Wed, 7 Aug 2024 12:55:01 -0700 Subject: [PATCH] =?UTF-8?q?add=20alert=20when=20can=E2=80=99t=20load=20use?= =?UTF-8?q?r?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/src/admin.js | 3 +++ public/js/src/user.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/public/js/src/admin.js b/public/js/src/admin.js index 90749206..397e1c99 100755 --- a/public/js/src/admin.js +++ b/public/js/src/admin.js @@ -51,6 +51,9 @@ apolloClient.query({ query: MeQuery }) }); } }) + .catch(() => { + alert('There was an error loading the page. The page not work as expected. Please refresh the page.'); + }) .finally(() => { rootStore.ready(); diff --git a/public/js/src/user.js b/public/js/src/user.js index c0f4bff0..935f8db9 100755 --- a/public/js/src/user.js +++ b/public/js/src/user.js @@ -50,6 +50,9 @@ apolloClient.query({ query: MeQuery }) }); } }) + .catch(() => { + alert('There was an error loading the page. The page not work as expected. Please refresh the page.'); + }) .finally(() => { rootStore.ready();