Memmy-App / memmy

An Apollo inspired open-source iOS and Android client for Lemmy built with React-Native. Find us on the App Store and Google Play!
GNU Affero General Public License v3.0
547 stars 58 forks source link

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

Open zPhoeniqz opened 7 months ago

zPhoeniqz commented 7 months ago

Check for open issues

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