mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-30 01:51:28 +00:00
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.
|
||
|---|---|---|
| .. | ||
| file-preview.tsx | ||
| google-docs-preview.tsx | ||
| mcp-preview.tsx | ||
| note-preview.tsx | ||
| notion-preview.tsx | ||
| plugin-preview.tsx | ||
| tweet-preview.tsx | ||
| website-preview.tsx | ||
| youtube-preview.tsx | ||