This commit is contained in:
vivganes 2023-04-04 21:03:00 +05:30
parent c515636616
commit c4312ea4dd

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);