memmy icon indicating copy to clipboard operation
memmy copied to clipboard

[Bug]: Crashing during search (TypeError: Cannot read property 'name' of undefined)

Open zPhoeniqz opened this issue 6 months ago • 0 comments

Check for open issues

  • [X] I have verified that another issue for this is not open, or it has been closed and has not been fixed.

Minimal reproducible example

Reproduce:

  1. Enter a search term
  2. Scroll for sometime until the app crashes

debug-log (also sent via email bug report):

lemmy-debug.log

I have the strong suspicion that the error happens in the CommunitySearchResults.tsx file since a property called name is read inside of useMemo (Line 19) which both are mentioned in the debug-log. I am trying to add a fix myself and open a PR but I have no React Native experience whatsoever.

Expected Behavior

App should not crash and display the search results.

Version

1.1.4.95 (95)

App Store or TestFlight?

App Store

iOS Version

16.x

Device

iPhone 8

zPhoeniqz avatar Dec 18 '23 19:12 zPhoeniqz