From 5b6522a54edad9737fccf195f9eaa25c6fb9d0f6 Mon Sep 17 00:00:00 2001 From: Nelson Chan <3271800+chakflying@users.noreply.github.com> Date: Wed, 8 Nov 2023 20:46:10 +0800 Subject: [PATCH] Fix: entryPage setting can be null (#3994) --- src/pages/Entry.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Entry.vue b/src/pages/Entry.vue index 2a539fb81..6b0e08fc6 100644 --- a/src/pages/Entry.vue +++ b/src/pages/Entry.vue @@ -33,7 +33,7 @@ export default { } else if (res.type === "entryPage") { // Dev only. For production, the logic is in the server side const entryPage = res.entryPage; - if (entryPage.startsWith("statusPage-")) { + if (entryPage?.startsWith("statusPage-")) { this.$router.push("/status/" + entryPage.replace("statusPage-", "")); } else { // should the old setting style still exist here?