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
If a calculation throws an error, the defaultIfError option is used as the property value instead, which has a default value of null. This isn't a valid value for list-valued properties, and it results in an error: "Cannot read property 'length' of null".
Should we...
Use the property default instead?
Use a data-type default?
Use [] for list-valued properties, and null for others?
On a related note, it might be good for canSetValue to return false if you try to set a list-valued property to null (since that will also result in cryptic unhandled errors for the same reason).
The text was updated successfully, but these errors were encountered:
If a calculation throws an error, the
defaultIfError
option is used as the property value instead, which has a default value ofnull
. This isn't a valid value for list-valued properties, and it results in an error: "Cannot read property 'length' of null".Should we...
[]
for list-valued properties, andnull
for others?On a related note, it might be good for
canSetValue
to return false if you try to set a list-valued property to null (since that will also result in cryptic unhandled errors for the same reason).The text was updated successfully, but these errors were encountered: