summaryrefslogtreecommitdiff
path: root/components/Sidebar
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2022-01-29 15:46:24 +0100
committerGitHub <[email protected]>2022-01-29 15:46:24 +0100
commit835c0029db437c7c2efff18f718a792ae5a1ccc0 (patch)
treeca9f60e54206f5d4736253955e327b4c48156fb2 /components/Sidebar
parentf1e1769d97e4f44d7336839db587b0acbb918d99 (diff)
parentb38fa6ad4f00e6f81e11590d2fa3d612ced47e7b (diff)
Merge pull request #203 from egh/fix/106
Diffstat (limited to 'components/Sidebar')
-rw-r--r--components/Sidebar/Backlinks.tsx2
-rw-r--r--components/Sidebar/Link.tsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/components/Sidebar/Backlinks.tsx b/components/Sidebar/Backlinks.tsx
index 9bfb1fe..7796a66 100644
--- a/components/Sidebar/Backlinks.tsx
+++ b/components/Sidebar/Backlinks.tsx
@@ -8,7 +8,7 @@ import React from 'react'
import { ProcessedOrg } from '../../util/processOrg'
export interface BacklinksProps {
- previewNode: any
+ previewNode: OrgRoamNode
setPreviewNode: any
nodeById: NodeById
linksByNodeId: LinksByNodeId
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()
})