From d1577fc6be0dc3564daaa174cc6fe8e76331a6b3 Mon Sep 17 00:00:00 2001 From: Mawoka Date: Sun, 29 Aug 2021 12:00:51 +0200 Subject: [PATCH] Reverted test-chings --- static/assets/app.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/static/assets/app.js b/static/assets/app.js index ee5f3b8..f2442ef 100644 --- a/static/assets/app.js +++ b/static/assets/app.js @@ -61,9 +61,7 @@ String.prototype.toHHMM = function () { return `${hours}:${minutes}` } -console.log(wakapiData.projects - .slice(0, Math.min(showTopN[0], wakapiData.projects.length)) - .map(p => p.key)) + function draw(subselection) { function getTooltipOptions(key) { @@ -338,9 +336,8 @@ function getPresentDataMask() { } function getContainer(chart) { - if ( chart.canvas != undefined) { - return chart.canvas.parentNode - } + // See https://github.com/muety/wakapi/issues/235#issuecomment-907762100 + return chart.canvas.parentNode } function onChartResize(chart) {