31a89356fe
- Add Array.isArray() checks before calling .map() on dose.takenBy - Fixes TypeError: dose.takenBy.map is not a function - Affects AppContext missedPastDoseIds calculation - Affects SchedulePage dose ID generation (3 locations) This hotfix prevents the app from crashing when dose.takenBy is null, undefined, or any non-array value.