diff --git a/src/helpers/linkUtils.js b/src/helpers/linkUtils.js index 27bffa4..68909d7 100644 --- a/src/helpers/linkUtils.js +++ b/src/helpers/linkUtils.js @@ -35,7 +35,7 @@ function getGraph(data) { let links = []; let stemURLs = {}; let homeAlias = "/"; - data.collections.note.forEach((v, idx) => { + (data.collections.note||[]).forEach((v, idx) => { let fpath = v.filePathStem.replace("/notes/", ""); let parts = fpath.split("/"); let group = "none";