diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-10-09 18:53:09 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-10-09 18:53:09 +0200 |
commit | cbbe66126c5281c2d6e18487dd76516f6e77d4f8 (patch) | |
tree | 402293afa2fa7b4a8568ec2492571926af88b33e /components/Sidebar/Link.tsx | |
parent | 6deb6247f63f5aaa25550dc0398d50221c5383c1 (diff) |
fix: fetching error
Diffstat (limited to 'components/Sidebar/Link.tsx')
-rw-r--r-- | components/Sidebar/Link.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/Sidebar/Link.tsx b/components/Sidebar/Link.tsx index 57fb723..4463fb8 100644 --- a/components/Sidebar/Link.tsx +++ b/components/Sidebar/Link.tsx @@ -1,3 +1,4 @@ +/* eslint-disable react/display-name */ import { Box, Button, @@ -140,7 +141,7 @@ export const PreviewLink = (props: LinkProps) => { const getText = () => { console.log('gettin text') - fetch(`http://localhost:35901/file/${file}`) + fetch(`127.0.0.1:35901/file/${file}`) .then((res) => { return res.text() }) |