From 4c41d6002f37d6704f1dad3fbc9eb77daeeeeb32 Mon Sep 17 00:00:00 2001 From: utchoang Date: Mon, 25 Apr 2022 09:56:49 +0700 Subject: [PATCH] Fixes InfraMammary screen not display when at least one section doesn't meet the display condition --- ui/src/views/infra/InfraSummary.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/src/views/infra/InfraSummary.vue b/ui/src/views/infra/InfraSummary.vue index 33cd7a41b922..941d15b440da 100644 --- a/ui/src/views/infra/InfraSummary.vue +++ b/ui/src/views/infra/InfraSummary.vue @@ -214,6 +214,9 @@ export default { fetchData () { this.routes = {} for (const section of this.sections) { + if (router.resolve('/' + section.substring(0, section.length - 1)).matched[0].redirect === '/exception/404') { + continue + } const node = router.resolve({ name: section.substring(0, section.length - 1) }) this.routes[section] = { title: node.meta.title,