diff options
Diffstat (limited to 'util/uniorg.tsx')
-rw-r--r-- | util/uniorg.tsx | 4 |
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() }) |