Search modal: Remove dot when no subitem or namespace is available

What does this MR do and why?

This is a follow-up to !191965 (merged) to address a small regresion that a dot () appears even if there is no additional context.

Screenshots or screen recordings

Before After
before1 after
before2 after2

How to set up and validate locally

  1. Open Search or go to...
  2. Check the list items
  3. Search

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #513103 (closed)

Merge request reports

Loading