Skip to content

Commit

Permalink
added another validation check
Browse files Browse the repository at this point in the history
  • Loading branch information
Spiral-Memory committed Mar 5, 2024
1 parent 4883fbb commit f65558d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/components/LinkPreview/LinkPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const LinkPreview = ({
const theme = useTheme();
const [isPreviewOpen, setIsPreviewOpen] = useState(true);

if (!meta) {
if (!meta || (typeof meta === 'object' && Object.keys(meta).length === 0)) {
return null;
}

Expand Down

0 comments on commit f65558d

Please sign in to comment.