diff --git a/src/memray/reporters/assets/flamegraph_common.js b/src/memray/reporters/assets/flamegraph_common.js index e75b22c4fd..4cfa1eda08 100644 --- a/src/memray/reporters/assets/flamegraph_common.js +++ b/src/memray/reporters/assets/flamegraph_common.js @@ -258,8 +258,8 @@ export function initThreadsDropdown(data, merge_threads) { } export function drawChart(chart_data) { - // In order to retain the "invertedness" when updating the graph, true - // by default. + // In order to retain the "invertedness" when updating the graph. + // true by default (there was no previous graph). let previouslyInverted = chart ? chart.inverted() : true; // Clear any existing chart