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 c36f662..6d0bb56 100644 --- a/util/uniorg.tsx +++ b/util/uniorg.tsx @@ -16,9 +16,9 @@ export const UniOrg = (props: UniOrgProps) => { const [previewText, setPreviewText] = useState('') - const file = encodeURIComponent(previewNode.file) + const file = encodeURIComponent(encodeURIComponent(previewNode.file)) useEffect(() => { - fetch(`api/notes/${file}`) + fetch(`http://localhost:35901/file/${file}`) .then((res) => { return res.text() }) |