From fb0b49d10120e7c78afe0f59b5cb11fdb8c7b5b0 Mon Sep 17 00:00:00 2001 From: Kentaro Goto Date: Mon, 28 Aug 2023 00:04:26 +0900 Subject: [PATCH] Skip preview branch in the timeline charts on downloads/branches/ --- javascripts/branch-timeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascripts/branch-timeline.js b/javascripts/branch-timeline.js index dfe7a5d061..6cf27da689 100644 --- a/javascripts/branch-timeline.js +++ b/javascripts/branch-timeline.js @@ -6,7 +6,7 @@ function drawChart() { const source = - JSON.parse(document.getElementById("branches.json").innerHTML).slice(0, 5).reverse() + JSON.parse(document.getElementById("branches.json").innerHTML).filter(e=>e.status != "preview").slice(0, 5).reverse() .map(e => { return { ...e,