supermemory/apps/web/components/document-cards
vimzh 0944e5fb33 fix(tweet-preview): reject array inputs in parseTweetData
The previous guard accepted any non-null `typeof === "object"`, which means
`JSON.parse("[]")` or `JSON.parse("[1,2,3]")` slipped through and reached
`enrichTweet` — exactly the class of crash the helper was added to prevent.

Add an `Array.isArray` check so only plain objects are passed downstream.
2026-05-24 11:54:53 +05:30
..
file-preview.tsx chore: improve the codebase with react doctor (#917) 2026-05-09 19:12:01 +00:00
google-docs-preview.tsx chore: improve the codebase with react doctor (#917) 2026-05-09 19:12:01 +00:00
mcp-preview.tsx fix: Add plugin document rendering and MCP preview support (#938) 2026-05-15 18:26:37 +00:00
note-preview.tsx fix: Add plugin document rendering and MCP preview support (#938) 2026-05-15 18:26:37 +00:00
notion-preview.tsx chore: improve the codebase with react doctor (#917) 2026-05-09 19:12:01 +00:00
plugin-preview.tsx fix: Add plugin document rendering and MCP preview support (#938) 2026-05-15 18:26:37 +00:00
tweet-preview.tsx fix(tweet-preview): reject array inputs in parseTweetData 2026-05-24 11:54:53 +05:30
website-preview.tsx chore: improve the codebase with react doctor (#917) 2026-05-09 19:12:01 +00:00
youtube-preview.tsx chore: improve the codebase with react doctor (#917) 2026-05-09 19:12:01 +00:00