summaryrefslogtreecommitdiff
path: root/components/Sidebar/Link.tsx
diff options
context:
space:
mode:
authorErik Hetzner <[email protected]>2022-01-17 07:38:57 -0800
committerErik Hetzner <[email protected]>2022-01-17 08:12:03 -0800
commitbb7036f4cfd279de388e9850b452b252fefb8e5b (patch)
tree0c0e7f260643a59cdb0be2716c06b056e08f9c7d /components/Sidebar/Link.tsx
parent5ecd418060bf606924ac86faa1aa4036d4c785fb (diff)
Do not assume that a node is the entire file
A roam node is no longer necessarily an entire file. It can be a file, or any heading with an id. Fixes #106
Diffstat (limited to 'components/Sidebar/Link.tsx')
-rw-r--r--components/Sidebar/Link.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/Sidebar/Link.tsx b/components/Sidebar/Link.tsx
index e5b1102..6130eb5 100644
--- a/components/Sidebar/Link.tsx
+++ b/components/Sidebar/Link.tsx
@@ -152,7 +152,7 @@ export const PreviewLink = (props: LinkProps) => {
const extraNoteStyle = outline ? outlineNoteStyle : viewerNoteStyle
console.log(previewNode)
const getText = () => {
- fetch(`http://localhost:35901/file/${file}`)
+ fetch(`http://localhost:35901/node/${id}`)
.then((res) => {
return res.text()
})