You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a Project - Language Engagement - Goal (with minimal fields)
Edit the goal, enter a change that doesn't include updating the scripture reference
Error Cannot read properties of null (reading 'length')
Expected Result
No error.
This is happening because a null for scriptureReferences is being sent to the API instead of an EmptyList []. The field for scriptureReference needs to be adjusted to send an empty array instead of a null value, and it would be nice to let the ScriptureReference field type from the API side allow nullable to only be an empty list instead of null | EmptyList type to safeguard against input with null values.
IMO this should be handled on the API side. If the graph schema says it's nullable, then null should be able to be passed in. If that needs to be converted to an empty array there it can happen internally.
Steps to Reproduce:
Cannot read properties of null (reading 'length')
Expected Result
No error.
This is happening because a null for scriptureReferences is being sent to the API instead of an EmptyList
[]
. The field for scriptureReference needs to be adjusted to send an empty array instead of a null value, and it would be nice to let the ScriptureReference field type from the API side allownullable
to only be an empty list instead ofnull | EmptyList
type to safeguard against input with null values.┆Issue is synchronized with this Monday item by Unito
The text was updated successfully, but these errors were encountered: