MGT React PeoplePicker throws `Cannot use 'in' operator` when `selectedPeople` starts as null
The error is not about emails vs IDs — it is a React state timing bug. selectedPeople was being populated after the initial render (e.g. via useState(null) then setGraphIds(others)), so on first render the picker received null and crashed when iterating over it. The fix, confirmed by the reporter: make sure th…
Problem outcome: unknown