Authors:
@sharepointknight
@Harshagracy
@DanyWyss
Issue:
I've recently noticed that some of my react list forms are no longer loading and I'm getting the following error 'TypeError: Cannot read property 'indexOf' of undefined' when trying to load some list forms'.

This error began to occur after I deployed the most recent update of the SPFX web part. It's really strange because it only seems to be affecting a handful of my forms and I can't quite pin-point what is triggering the error. The majority of my forms are working as expected.
Any help would be much appreciated.
Steps to reproduce the error:
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
hi, are you able to provide the definitions for your list which would help us reproduce the issue?
I believe I have fixed this in the other fixes I am working on. I believe it is related to different handling of Lookup fields by SharePoint. I'll make sure this fix gets committed shortly.
Thanks @sharepointknight . I assigned this to you so it doesn't get lost 馃憤
I believe I have fixed this in the other fixes I am working on. I believe it is related to different handling of Lookup fields by SharePoint. I'll make sure this fix gets committed shortly.
Once again, thank you so soo much @sharepointknight your hard work and efforts are very much appreciated!!!
Hi @sharepointknight , is this related to the Lookup columns no longer returning a Choices field in the sharepoint api call? I've had a similar issue in a webpart for my day job and I'd be happy to help with this issue if they're similar.