From 2ba01c831178facd35c62adcb22f3cc39ead6975 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Fri, 24 Dec 2021 15:51:37 -0500 Subject: [PATCH] fix untitled #36 --- layouts/partials/graph.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/graph.html b/layouts/partials/graph.html index a9637431e..7dcd5365d 100644 --- a/layouts/partials/graph.html +++ b/layouts/partials/graph.html @@ -185,7 +185,7 @@ const labels = graphNode.append("text") .attr("dx", 12) .attr("dy", ".35em") - .text((d) => content[d.id.replace("%20", "-")].title) + .text((d) => content[d.id.replace("%20", "-")]?.title || "Untitled") .style("opacity", 0) .style("pointer-events", "none") .call(drag(simulation));