mirror of
https://github.com/tcsenpai/obsidiangarden_netlify.git
synced 2025-06-07 05:05:20 +00:00
Fix #85
This commit is contained in:
parent
37a73b82a2
commit
725a211252
@ -56,8 +56,14 @@
|
||||
gData
|
||||
.links
|
||||
.forEach(link => {
|
||||
const a = gData.nodes[link.source];
|
||||
const b = gData.nodes[link.target];
|
||||
const a = gData
|
||||
.nodes
|
||||
.find(x => x.id === link.source);
|
||||
const b = gData
|
||||
.nodes
|
||||
.find(x => x.id === link.target);
|
||||
if (a && b) {
|
||||
|
||||
!a.neighbors && (a.neighbors = []);
|
||||
!b.neighbors && (b.neighbors = []);
|
||||
a
|
||||
@ -75,6 +81,7 @@
|
||||
b
|
||||
.links
|
||||
.push(link);
|
||||
}
|
||||
});
|
||||
|
||||
let Graph;
|
||||
|
Loading…
x
Reference in New Issue
Block a user