From 76c5f9b8378e6c137d95c5edb9b08bbdd56438e1 Mon Sep 17 00:00:00 2001 From: AJ Date: Wed, 3 Jan 2024 10:50:39 -0500 Subject: [PATCH] load UI when backend doesn't exist. --- src/components/AuthError.vue | 2 +- src/components/TodoList.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/AuthError.vue b/src/components/AuthError.vue index 54f1b34..49114d9 100644 --- a/src/components/AuthError.vue +++ b/src/components/AuthError.vue @@ -13,7 +13,7 @@ export default { inject: ['$error'], computed: { msg() { - return this.$auth0.error.value || this.$error.value; + return this.$auth0.error?.value || this.$error?.value; } } }; diff --git a/src/components/TodoList.vue b/src/components/TodoList.vue index bcd2198..201bb4c 100644 --- a/src/components/TodoList.vue +++ b/src/components/TodoList.vue @@ -70,7 +70,7 @@ export default { eventStream.onerror = function (err) { setTimeout(() => { - if (eventStream.readyState != EventSource.OPEN) { + if (error && eventStream.readyState != EventSource.OPEN) { error.value = "Login Required"; } }, 3000);