mirror of
https://github.com/tcsenpai/obsidiangarden_netlify.git
synced 2025-06-06 04:35:20 +00:00
Fix issue with graph generation for urls with url encoded values
This commit is contained in:
parent
acfea37940
commit
545b68773d
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
function filterToDepth(data) {
|
function filterToDepth(data) {
|
||||||
let remaining = JSON.parse(JSON.stringify(data.nodes));
|
let remaining = JSON.parse(JSON.stringify(data.nodes));
|
||||||
let currentLink = window.location.pathname;
|
let currentLink = decodeURI(window.location.pathname);
|
||||||
let currentNode = remaining[currentLink] || Object.values(remaining).find((v) => v.home);
|
let currentNode = remaining[currentLink] || Object.values(remaining).find((v) => v.home);
|
||||||
delete remaining[currentNode.url];
|
delete remaining[currentNode.url];
|
||||||
if (!currentNode.home) {
|
if (!currentNode.home) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user