msupply-foundation / mobile

Open source mobile app for medical inventory control
http://msupply.org.nz/mobile
Other
42 stars 27 forks source link

crashing app in dispensing mode when switching from patient to prescriber #5428

Closed arjunSussol closed 6 months ago

arjunSussol commented 6 months ago

Describe the bug

Dispensing > default is patient list view > click to Prescriber to view it > app crashes

Issue raised by ticket

To reproduce

Steps to reproduce the behaviour:

  1. Go to Dispensing
  2. Click on Prescriber
  3. App crashes
  4. See error

https://github.com/msupply-foundation/mobile/assets/13060254/4ac83c6f-d272-4056-bbb7-751a82d50fda

Expected behaviour

App should not crashes

Proposed Solution

Leave if you don't know how to fix/implement. Edit this issue description and explain here if you know the best path of implementing the fix within the codebase.

Version and device info

Additional context

Add any other context about the problem here.