From fadb97ef52427a6222ab8943c26f89973390690d Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Sun, 17 Oct 2021 02:30:01 +0200 Subject: fix(#118): link bugfixes --- util/uniorg.tsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'util') diff --git a/util/uniorg.tsx b/util/uniorg.tsx index 8802dd1..98aa878 100644 --- a/util/uniorg.tsx +++ b/util/uniorg.tsx @@ -31,11 +31,16 @@ export const UniOrg = (props: UniOrgProps) => { return res.text() }) .then((res) => { + if (res === '') { + return '(empty node)' + } if (res !== 'error') { + console.log(res) setPreviewText(res) } }) .catch((e) => { + setPreviewText('(could not find node)') console.log(e) return 'Could not fetch the text for some reason, sorry!\n\n This can happen because you have an id with forward slashes (/) in it.' }) -- cgit v1.2.3