From 231febab967b8c5ff60e7063207a8a734364f19d Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Mon, 8 May 2023 13:26:07 +0200 Subject: [PATCH] [FIX] runbot: fix stats.js --- runbot/static/src/js/stats.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;