mirror of
https://github.com/tcsenpai/obsidiangarden_netlify.git
synced 2025-06-06 20:55:21 +00:00
Fixed build error when no notes has been added
This commit is contained in:
parent
9e1e161b5e
commit
1afa8d19c2
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user