From 663fe2f7fef2f0234bf6eaed1c20d38b8ecc541e Mon Sep 17 00:00:00 2001 From: "Tomoya Matsuura(MacBookPro)" Date: Thu, 10 Aug 2023 21:46:59 +0900 Subject: [PATCH] fixed graph --- assets/js/graph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/graph.js b/assets/js/graph.js index 68b8bb7f..7fea2963 100644 --- a/assets/js/graph.js +++ b/assets/js/graph.js @@ -242,7 +242,7 @@ async function drawGraph(baseUrl, isHome, pathColors, graphConfig) { const str = content[d.id]?.title || decodeURI(d.id.charAt(1).toUpperCase() + d.id.slice(2)) .replace("-", " "); - str.slice(0, 30) + (str.length > 30 ? "..." : "") + return str.slice(0, 30) + (str.length > 30 ? "..." : "") }) .style('opacity', (opacityScale - 1) / 3.75) .style("pointer-events", "none")