diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-10-17 15:31:44 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-10-17 15:31:44 +0200 |
commit | 92f465fbe2dd66576f902b65171da6116e29f1c2 (patch) | |
tree | 8a06a99ac81d12b5078129873442e2b106042ea4 /util | |
parent | 6ed792c982991b679d1c50060f4ca25b2eb1b9ca (diff) | |
parent | fadb97ef52427a6222ab8943c26f89973390690d (diff) |
Merge pull request #121 from org-roam/fix/500
fix(#118): link bugfixes
Diffstat (limited to 'util')
-rw-r--r-- | util/uniorg.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
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.' }) |