diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-10-09 19:55:44 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-10-09 19:55:44 +0200 |
commit | 330bf49492a8babf5a1fc5f8d4c88f3237a0c1f8 (patch) | |
tree | 488bf858a3a7658962f92a835192c04043b975b1 /components/Sidebar/Link.tsx | |
parent | f634e215b81da6977f28d78f45d4148d786096dc (diff) |
feat(preview): image previewing
Diffstat (limited to 'components/Sidebar/Link.tsx')
-rw-r--r-- | components/Sidebar/Link.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/Sidebar/Link.tsx b/components/Sidebar/Link.tsx index 4463fb8..3791c74 100644 --- a/components/Sidebar/Link.tsx +++ b/components/Sidebar/Link.tsx @@ -134,14 +134,13 @@ export const PreviewLink = (props: LinkProps) => { </PreviewLink> ), img: ({ src }) => { - return <OrgImage src={src as string} file={file} /> + return <OrgImage src={src as string} file={nodeById[id]?.file as string} /> }, }, }) const getText = () => { - console.log('gettin text') - fetch(`127.0.0.1:35901/file/${file}`) + fetch(`http://localhost:35901/file/${file}`) .then((res) => { return res.text() }) |