Aiden Bai
2022-05-03 9d3bbd607687899d173e9087f2782d7460ebee82
assets/js/graph.js
@@ -1,5 +1,5 @@
async function drawGraph(
  url,
  _url,
  baseUrl,
  pathColors,
  depth,
@@ -10,7 +10,7 @@
  const container = document.getElementById('graph-container')
  const { index, links, content } = await fetchData
  const curPage = url.replace(baseUrl, '')
  const curPage = window.location.href.replace(baseUrl, '').slice(0, -1)
  const parseIdsFromLinks = (links) => [
    ...new Set(links.flatMap((link) => [link.source, link.target])),