Skip to content

Commit 045edfa

Browse files
authored
fix(launchpad): Select root for initial breadcrumb (#103236)
Resolves EME-587
1 parent 7c4ca46 commit 045edfa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

static/app/views/preprod/components/visualizations/appSizeTreemap.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,12 @@ export function AppSizeTreemap(props: AppSizeTreemapProps) {
204204
height: `calc(100% - 22px)`,
205205
width: '100%',
206206
top: '22px',
207+
// Very mysteriously this controls the initial breadcrumbs:
208+
// https://github.com/apache/echarts/blob/6f305b497adc47fa2987a450d892d09741342c56/src/chart/treemap/TreemapView.ts#L665
209+
// If truthy the root is selected else the 'middle' node is selected.
210+
// It has to be set to large number to avoid problems caused by
211+
// leafDepth's main use - controlling how many layers to render.
212+
leafDepth: 100000,
207213
breadcrumb: {
208214
show: true,
209215
left: '0',

0 commit comments

Comments
 (0)