I see that the draft record in datasource is deprecated. I read the release notes but am having trouble with one bit of code. Tried to convert this:
widget.datasource.draft.Email = (newValue) ? newValue.PrimaryEmail : null;
to this:
widget.datasource.item.Email = (newValue) ? newValue.PrimaryEmail : null;
But am getting this error: Cannot set property 'Email' of null
Any suggestions on what is wrong? The widget is being passed from the onValueChange action.
Thanks