You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
Fix: dashboard list crash when dashboard title is undefined (CLI-20D) #1094
CLI-20D — TypeError: Cannot read properties of undefined (reading 'replace')
Summary
sentry dashboard list crashes with a TypeError when the Sentry API returns a dashboard with a null or undefinedtitle field. The escapeMarkdownCell() function in the markdown formatter calls .replace() on the value without a null guard.
Root Cause
The DashboardListItemSchema Zod schema marks title as z.string() (required), but this schema is never used for runtime validation — the @sentry/api SDK response is type-cast via as T in unwrapResult(). When a self-hosted Sentry instance returns a dashboard with a missing or null title, the value passes through to the formatter as undefined, bypassing all static type checks.
Crash Site
// src/commands/dashboard/list.ts:157title: `${escapeMarkdownCell(d.title)}\n${colorTag("muted",url)}`,// ^^^^^^^^ undefined at runtime
Activity
fix(dashboard): guard against undefined titles in list and resolve (g…