Skip to content
This repository was archived by the owner on Apr 27, 2023. It is now read-only.

Commit 7fd43cb

Browse files
committed
fix chane application error
1 parent dd3c75e commit 7fd43cb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/FlameGraphRenderer.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,8 @@ class FlameGraphRenderer extends React.Component {
299299
'400 11px system-ui, -apple-system, "Segoe UI", "Roboto", "Ubuntu", "Cantarell", "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"';
300300

301301
const formatter = this.createFormatter();
302-
// i = level
303302
for (let i = 0; i < this.levelsToShow - this.topLevel; i++) {
304-
const level = levels[this.topLevel + i];
303+
const level = levels[this.topLevel + i] || [];
305304
for (let j = 0; j < level.length; j += 4) {
306305
// j = 0: x start of bar
307306
// j = 1: width of bar

0 commit comments

Comments
 (0)