From a9fbc85ea99b153f6c818a393cea3caacc54f638 Mon Sep 17 00:00:00 2001 From: Cody Jackson Date: Fri, 26 Jan 2024 15:34:21 -0700 Subject: [PATCH] Fixing an issue where a field can sometimes be undefined It was reported in slack that the bundle page would error out when visiting the bundle pages due to an undefined reference. This resolves that issue. --- shell/detail/fleet.cattle.io.bundle.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/detail/fleet.cattle.io.bundle.vue b/shell/detail/fleet.cattle.io.bundle.vue index b557ad4dc25..d4ed8a0c8ea 100644 --- a/shell/detail/fleet.cattle.io.bundle.vue +++ b/shell/detail/fleet.cattle.io.bundle.vue @@ -38,7 +38,7 @@ export default { if (this.hasRepoLabel) { const bundleResourceIds = this.bundleResourceIds; - return this.repo?.status?.resources.filter((resource) => { + return this.repo?.status?.resources?.filter((resource) => { return bundleResourceIds.includes(resource.name); }); } else if (this.value?.spec?.resources?.length) {