From bcd238a2f201e134ecff99cc0b4a5bb843fff8b7 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 1 Aug 2022 03:15:06 +0200 Subject: [PATCH] Dashboard: development --- utils/dashboard.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/utils/dashboard.html b/utils/dashboard.html index 3a7111cb1c9..7e0cac6a376 100644 --- a/utils/dashboard.html +++ b/utils/dashboard.html @@ -430,7 +430,8 @@ function getParamsForURL() { let charts = document.getElementById('charts'); -function insertChart(q) { +function insertChart(i) { + let q = queries[i]; let chart = document.createElement('div'); chart.className = 'chart'; @@ -539,12 +540,12 @@ function insertChart(q) { }; for (let i = 0; i < queries.length; ++i) { - insertChart(queries[i]); + insertChart(i); } document.getElementById('add').addEventListener('click', e => { queries.push({ title: '', query: '' }); - insertChart(''); + insertChart(plots.length); plots.push(null); resize(); });