From 41fe97390ceddf945f3d967b8fdb3de4c66b7dea Mon Sep 17 00:00:00 2001
From: GitLab Bot <gitlab-bot@gitlab.com>
Date: Fri, 18 Mar 2022 20:02:30 +0000
Subject: Add latest changes from gitlab-org/gitlab@14-9-stable-ee

---
 .../header_search/components/header_search_default_items.vue          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'app/assets/javascripts/header_search/components/header_search_default_items.vue')

diff --git a/app/assets/javascripts/header_search/components/header_search_default_items.vue b/app/assets/javascripts/header_search/components/header_search_default_items.vue
index 53e63bc6cca..04deaba7b0f 100644
--- a/app/assets/javascripts/header_search/components/header_search_default_items.vue
+++ b/app/assets/javascripts/header_search/components/header_search_default_items.vue
@@ -24,8 +24,8 @@ export default {
     ...mapGetters(['defaultSearchOptions']),
     sectionHeader() {
       return (
-        this.searchContext.project?.name ||
-        this.searchContext.group?.name ||
+        this.searchContext?.project?.name ||
+        this.searchContext?.group?.name ||
         this.$options.i18n.allGitLab
       );
     },
-- 
cgit v1.2.1

