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
I think this issue is not a bug. Because your decodeGroupOpaqueId function gets second arguments with an instance of Error class.
But when you use the decodeGroupOpaqueId function with map like opaqueGroupIds.map(decodeGroupOpaqueId). It will pass the opaqueGroupId with the second argument as an index of the array (map will pass two arguments (element, index)).
In this case, I think you should use opaqueGroupIds.map((opaqueGroupId) => decodeGroupOpaqueId(opaqueGroupId)) instead the abbreviated version of the map.
When passing incorrect namespacing from the api, we expect an error message that alerts us to the incorrect namespace, such as:
When calling a query from the API using
map
-groupIds = opaqueGroupIds.map((opaqueGroupId) => decodeGroupOpaqueId(opaqueGroupId));
However, when using the abbreviated version of
map
-groupIds = opaqueGroupIds.map(decodeGroupOpaqueId);
In theory, these two are the same and should provide the same error messaging.
The text was updated successfully, but these errors were encountered: