fix untitled #36

This commit is contained in:
Jacky Zhao 2021-12-24 15:51:37 -05:00
parent 7858bc70cf
commit c9400d06fa

View File

@ -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));