Fix list item click event on the group-level Analytics Dashboards page

What does this MR do and why?

Fixes bug in the group-level Analytics Dashboards page where clicking on a dashboard list item does not route/redirect to its respective dashboard. The following error was preventing it from doing so:

[Vue warn]: Error in v-on handler: "TypeError: Cannot read properties of undefined (reading '$el')"

found in

---> <DashboardsListItem> at /Users/rudycrespo/Documents/Workspace/gdk-default/gitlab/ee/app/assets/javascripts/analytics/analytics_dashboards/components/list/dashboard_list_item.vue
       <DashboardsList> at /Users/rudycrespo/Documents/Workspace/gdk-default/gitlab/ee/app/assets/javascripts/analytics/analytics_dashboards/components/dashboards_list.vue
         <DashboardsApp> at /Users/rudycrespo/Documents/Workspace/gdk-default/gitlab/ee/app/assets/javascripts/analytics/analytics_dashboards/dashboards_app.vue
           <Root>

MR acceptance checklist

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

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screen Recording 2024-09-06 at 5.11.07 PM.mov Screen Recording 2024-09-06 at 5.20.51 PM.mov

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Please make sure that you're on the GitLab Ultimate plan
  2. Create a new group or navigate to an existing one
  3. Navigate to the group above and, from the left sidebar, select the Analyze > Analytics dashboards link
  4. Select any of the dashboard list items and verify that it routes/redirects to its respective dashboard.
Edited by Rudy Crespo

Merge request reports

Loading