Fixed build error when no notes has been added

This commit is contained in:
Ole Eskild Steensen 2023-02-04 21:25:54 +01:00
parent 9e1e161b5e
commit 1afa8d19c2

View File

@ -35,7 +35,7 @@ function getGraph(data) {
let links = []; let links = [];
let stemURLs = {}; let stemURLs = {};
let homeAlias = "/"; let homeAlias = "/";
data.collections.note.forEach((v, idx) => { (data.collections.note||[]).forEach((v, idx) => {
let fpath = v.filePathStem.replace("/notes/", ""); let fpath = v.filePathStem.replace("/notes/", "");
let parts = fpath.split("/"); let parts = fpath.split("/");
let group = "none"; let group = "none";