Skip to content

[🐛 Bug]: Clicking Grafana/Prometheus Alerts Causes Cannot read properties of undefined (reading 'weight') Error #5585

@syphernl

Description

@syphernl

Describe the bug
Clicking an alert in the Alerts feed originating from Grafana or Prometheus sources results in an error page.

The error is:

Cannot read properties of undefined (reading 'weight')

Victoriametrics alerts do not exhibit this issue as their details open correctly in the sidebar.

To Reproduce

  1. Go to the Alerts feed.
  2. Click on an alert sourced from Grafana or Prometheus.
  3. The error page appears instead of the alert details.

Expected behavior
Clicking any alert should open the alert details panel without errors, consistent with Victoriametrics alerts.

Screenshots
N/A - stack trace provided below.

Stack trace

TypeError: Cannot read properties of undefined (reading 'weight')
at h (https://keep.example.com/_next/static/chunks/22494-0062dbef2e56880e.js:1:116170)
at https://keep.example.com/_next/static/chunks/22494-0062dbef2e56880e.js:1:116059
at Array.forEach (<anonymous>)
at c (https://keep.example.com/_next/static/chunks/22494-0062dbef2e56880e.js:1:115971)
at g (https://keep.example.com/_next/static/chunks/22494-0062dbef2e56880e.js:1:116980)
at l (https://keep.example.com/_next/static/chunks/22494-0062dbef2e56880e.js:1:115897)
at e.exports (https://keep.example.com/_next/static/chunks/22494-0062dbef2e56880e.js:1:110845)
at https://keep.example.com/_next/static/chunks/22494-0062dbef2e56880e.js:1:123922
at notime (https://keep.example.com/_next/static/chunks/22494-0062dbef2e56880e.js:1:92505)
at https://keep.example.com/_next/static/chunks/22494-0062dbef2e56880e.js:1:123905

Additional context

  • Version: 0.48.1
  • Build: 2076b0
  • Issue appears specific to Grafana/Prometheus alerts; Victoriametrics alerts function normally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions