fix(mcp): prevent GRID_ID injection into ROOT_ID on tabbed dashboards (#38890)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
(cherry picked from commit aa1a69555b)
This commit is contained in:
Amin Ghadersohi
2026-03-30 11:26:58 +02:00
committed by Michael S. Molina
parent e08c305396
commit 875d0c062f
3 changed files with 266 additions and 179 deletions

View File

@@ -828,8 +828,7 @@ export default function transformProps(
// boundary that formats identically to the last data-point tick (e.g.
// "2005" appears twice with Year grain). Wrap the formatter to suppress
// consecutive duplicate labels.
const showMaxLabel =
xAxisType === AxisType.Time && xAxisLabelRotation === 0;
const showMaxLabel = xAxisType === AxisType.Time && xAxisLabelRotation === 0;
const deduplicatedFormatter = showMaxLabel
? (() => {
let lastLabel: string | undefined;