Merge pull request #486 from vivganes/main

fix #484
This commit is contained in:
Kieran 2023-04-05 12:08:33 +01:00 committed by GitHub
commit db19792d52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ const LinkPreview = ({ url }: { url: string }) => {
useEffect(() => {
(async () => {
const data = await fetchUrlPreviewInfo(url);
if (data) {
if (data && data.title) {
setPreview(data);
} else {
setPreview(null);