supermemory/apps
vimzh e5ead50a3d fix(tweet-preview): guard JSON.parse to avoid crashing on malformed tweet data
TweetPreview was passing the result of `JSON.parse(data)` straight into
`enrichTweet` whenever `data` was a string. If a document's stored tweet
metadata was ever a non-JSON string, truncated JSON, or `"null"` / `"123"`,
the unguarded parse threw and crashed the React tree rendering the
document modal or memory card.

Extract the parse into a `parseTweetData` helper that returns `null` when
the input is missing, fails to parse, or doesn't resolve to an object.
TweetPreview now renders nothing in those cases instead of crashing.

Also widen the prop type from `Tweet` to `Tweet | string` to reflect the
runtime input both call sites already pass.
2026-05-24 11:46:19 +05:30
..
browser-extension feat: add codex and revamp plugins page (#931) 2026-05-11 23:13:08 +00:00
docs docs: align vibe-coding prompt + install guide with canonical API (#976) 2026-05-19 15:27:20 -07:00
mcp Update chat empty state and Auto space mode (#954) 2026-05-16 23:55:34 -07:00
memory-graph-playground use portless 2026-05-06 22:42:34 -07:00
raycast-extension feat: mobile responsive, lint formats, toast, render issue fix (#688) 2026-01-21 03:11:53 +00:00
web fix(tweet-preview): guard JSON.parse to avoid crashing on malformed tweet data 2026-05-24 11:46:19 +05:30