diff --git a/front_end/ui_lazy/FlameChart.js b/front_end/ui_lazy/FlameChart.js index c1208bc4de..f699c73a7b 100644 --- a/front_end/ui_lazy/FlameChart.js +++ b/front_end/ui_lazy/FlameChart.js @@ -122,7 +122,7 @@ WebInspector.FlameChartDataProvider = function() } /** - * @typedef {!{name: string, startLevel: number, expanded: boolean, style: !WebInspector.FlameChart.GroupStyle}} + * @typedef {!{name: string, startLevel: number, expanded: (boolean|undefined), style: !WebInspector.FlameChart.GroupStyle}} */ WebInspector.FlameChart.Group; @@ -1401,7 +1401,7 @@ WebInspector.FlameChart.prototype = { context.beginPath(); forEachGroup((offset, index, group) => { if (group.style.collapsible) - drawExpansionArrow(expansionArrowX, offset + textBaseHeight - arrowSide / 2, group.expanded) + drawExpansionArrow(expansionArrowX, offset + textBaseHeight - arrowSide / 2, !!group.expanded) }); context.fill();