| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
tanstack-com | 5a29fad | Commit Preview URL Branch Preview URL |
Aug 27 2026, 11:04 PM |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR addresses a TypeError: r.map is not a function occurring in the RecentPostsWidget when the fetchRecentPosts server function returns a non-array value (e.g., an error object).
Changes Made:
Why these changes?
The original issue stemmed from fetchRecentPosts potentially returning an object (e.g., { error: "..." }) on failure. The RecentPostsWidget's guard !visiblePosts was insufficient as an object is truthy, and object.length is undefined, bypassing the check. Consequently, RecentPostsList received a non-array and crashed when calling .map(). These changes implement a more precise type check in the widget and a safer return value from the server function, resolving the TypeError and improving resilience.
Fixes TANSTACK-COM-4SC
This PR was automatically generated by Sentry. You can adjust this setting at any time.