diff --git a/runbot/static/src/js/stats.js b/runbot/static/src/js/stats.js index e33a41b8..2cc43f8a 100644 --- a/runbot/static/src/js/stats.js +++ b/runbot/static/src/js/stats.js @@ -90,10 +90,10 @@ function process_chart_data(){ var older_build_stats = config.result[builds[0]]; var keys = Object.keys(newer_build_stats) ; if (aggregate != 'sum') { - keys.splice(keys.indexOf('Aggregate Sum')); + keys.splice(keys.indexOf('Aggregate Sum'), 1); } if (aggregate != 'average') { - keys.splice(keys.indexOf('Aggregate Average')); + keys.splice(keys.indexOf('Aggregate Average'), 1); } var mode = document.getElementById('mode_selector').value;