summaryrefslogtreecommitdiff
path: root/util/uniorg.tsx
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 /util/uniorg.tsx
parentf1e1769d97e4f44d7336839db587b0acbb918d99 (diff)
parentb38fa6ad4f00e6f81e11590d2fa3d612ced47e7b (diff)
Merge pull request #203 from egh/fix/106
Diffstat (limited to 'util/uniorg.tsx')
-rw-r--r--util/uniorg.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/uniorg.tsx b/util/uniorg.tsx
index c4407f2..6580b9c 100644
--- a/util/uniorg.tsx
+++ b/util/uniorg.tsx
@@ -34,9 +34,9 @@ export const UniOrg = (props: UniOrgProps) => {
const [previewText, setPreviewText] = useState('')
- const file = encodeURIComponent(encodeURIComponent(previewNode.file))
+ const id = encodeURIComponent(encodeURIComponent(previewNode.id))
useEffect(() => {
- fetch(`http://localhost:35901/file/${file}`)
+ fetch(`http://localhost:35901/node/${id}`)
.then((res) => {
return res.text()
})