From 0cfd93c57cdb31c0f0c48bddb407158ea2e0d7db Mon Sep 17 00:00:00 2001
From: Ella <git@ella.cx>
Date: Sun, 17 Apr 2022 09:11:17 +0000
Subject: [PATCH] Fix another typo
---
assets/js/graph.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/assets/js/graph.js b/assets/js/graph.js
index 6a63024..f0b1f7f 100644
--- a/assets/js/graph.js
+++ b/assets/js/graph.js
@@ -185,7 +185,7 @@
const labels = graphNode.append("text")
.attr("dx", 12)
.attr("dy", ".35em")
- .text((d) => content[decodeURI(d.id).replace(/\s+/g, '-')]?.title || d.id.replace("-", " "))
+ .text((d) => content[d.id]?.title || d.id.replace("-", " "))
.style("opacity", 0)
.style("pointer-events", "none")
.call(drag(simulation));
--
Gitblit v1.10.0